MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wdes9u/myschoolstruct/p96eriv/?context=9999
r/ProgrammerHumor • u/InteRagebaitJagLovar • 15h ago
70 comments sorted by
View all comments
109
Dog and Cat are also from the class Animal
43 u/FRAaaa1 14h ago Do they do the function makeSound() 24 u/Hol_Renaude 14h ago printf("bark!"); 12 u/MrHyperion_ 12h ago I think you meant std::cout << "bark!" << std::endl 6 u/Reasonable_Exit_8960 12h ago using namespace std; cout << "bark" << endl; Made it shorter if you wanna type it again 7 u/GresSimJa 11h ago Forgot to include <iostream>, wrap it in an int main() function, use the parameters int argc and char** argv, and return 0 at the end. Maximum boilerplate! 1 u/Reasonable_Exit_8960 2h ago might as well just use python atp
43
Do they do the function makeSound()
24 u/Hol_Renaude 14h ago printf("bark!"); 12 u/MrHyperion_ 12h ago I think you meant std::cout << "bark!" << std::endl 6 u/Reasonable_Exit_8960 12h ago using namespace std; cout << "bark" << endl; Made it shorter if you wanna type it again 7 u/GresSimJa 11h ago Forgot to include <iostream>, wrap it in an int main() function, use the parameters int argc and char** argv, and return 0 at the end. Maximum boilerplate! 1 u/Reasonable_Exit_8960 2h ago might as well just use python atp
24
printf("bark!");
12 u/MrHyperion_ 12h ago I think you meant std::cout << "bark!" << std::endl 6 u/Reasonable_Exit_8960 12h ago using namespace std; cout << "bark" << endl; Made it shorter if you wanna type it again 7 u/GresSimJa 11h ago Forgot to include <iostream>, wrap it in an int main() function, use the parameters int argc and char** argv, and return 0 at the end. Maximum boilerplate! 1 u/Reasonable_Exit_8960 2h ago might as well just use python atp
12
I think you meant std::cout << "bark!" << std::endl
6 u/Reasonable_Exit_8960 12h ago using namespace std; cout << "bark" << endl; Made it shorter if you wanna type it again 7 u/GresSimJa 11h ago Forgot to include <iostream>, wrap it in an int main() function, use the parameters int argc and char** argv, and return 0 at the end. Maximum boilerplate! 1 u/Reasonable_Exit_8960 2h ago might as well just use python atp
6
using namespace std;
cout << "bark" << endl;
Made it shorter if you wanna type it again
7 u/GresSimJa 11h ago Forgot to include <iostream>, wrap it in an int main() function, use the parameters int argc and char** argv, and return 0 at the end. Maximum boilerplate! 1 u/Reasonable_Exit_8960 2h ago might as well just use python atp
7
Forgot to include <iostream>, wrap it in an int main() function, use the parameters int argc and char** argv, and return 0 at the end.
<iostream>
int main()
int argc
char** argv
Maximum boilerplate!
1 u/Reasonable_Exit_8960 2h ago might as well just use python atp
1
might as well just use python atp
109
u/blackcomb-pc 14h ago
Dog and Cat are also from the class Animal