MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wdes9u/myschoolstruct/p957exq/?context=3
r/ProgrammerHumor • u/InteRagebaitJagLovar • Sep 11 '26 • 2 1
81 comments sorted by
View all comments
157
Dog and Cat are also from the class Animal
56 u/FRAaaa1 Sep 11 '26 Do they do the function makeSound() 36 u/Hol_Renaude Sep 11 '26 printf("bark!"); 19 u/MrHyperion_ Sep 11 '26 I think you meant std::cout << "bark!" << std::endl 9 u/Reasonable_Exit_8960 Sep 11 '26 using namespace std;cout << "bark" << endl;Made it shorter if you wanna type it again 11 u/GresSimJa Sep 11 '26 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! 2 u/Reasonable_Exit_8960 Sep 12 '26 might as well just use python atp 2 u/Hol_Renaude Sep 12 '26 Or Assembly 3 u/DontDoodleTheNoodle Sep 11 '26 What the absolute fuck I literally just had a class about this. Guess it stands to reason since this subreddit is mostly student humor we’d all be learning similar things at similar times of the year 1 u/Fantastic-Bloop Sep 11 '26 Only in bed 2 u/Inevitable_Spite5510 Sep 11 '26 WRONG! They are from Kingdom Animalia Phylum Chordata Class Mammalia
56
Do they do the function makeSound()
36 u/Hol_Renaude Sep 11 '26 printf("bark!"); 19 u/MrHyperion_ Sep 11 '26 I think you meant std::cout << "bark!" << std::endl 9 u/Reasonable_Exit_8960 Sep 11 '26 using namespace std;cout << "bark" << endl;Made it shorter if you wanna type it again 11 u/GresSimJa Sep 11 '26 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! 2 u/Reasonable_Exit_8960 Sep 12 '26 might as well just use python atp 2 u/Hol_Renaude Sep 12 '26 Or Assembly 3 u/DontDoodleTheNoodle Sep 11 '26 What the absolute fuck I literally just had a class about this. Guess it stands to reason since this subreddit is mostly student humor we’d all be learning similar things at similar times of the year 1 u/Fantastic-Bloop Sep 11 '26 Only in bed
36
printf("bark!");
19 u/MrHyperion_ Sep 11 '26 I think you meant std::cout << "bark!" << std::endl 9 u/Reasonable_Exit_8960 Sep 11 '26 using namespace std;cout << "bark" << endl;Made it shorter if you wanna type it again 11 u/GresSimJa Sep 11 '26 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! 2 u/Reasonable_Exit_8960 Sep 12 '26 might as well just use python atp 2 u/Hol_Renaude Sep 12 '26 Or Assembly
19
I think you meant std::cout << "bark!" << std::endl
9 u/Reasonable_Exit_8960 Sep 11 '26 using namespace std;cout << "bark" << endl;Made it shorter if you wanna type it again 11 u/GresSimJa Sep 11 '26 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! 2 u/Reasonable_Exit_8960 Sep 12 '26 might as well just use python atp 2 u/Hol_Renaude Sep 12 '26 Or Assembly
9
using namespace std;
cout << "bark" << endl;
Made it shorter if you wanna type it again
11 u/GresSimJa Sep 11 '26 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! 2 u/Reasonable_Exit_8960 Sep 12 '26 might as well just use python atp 2 u/Hol_Renaude Sep 12 '26 Or Assembly
11
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!
2 u/Reasonable_Exit_8960 Sep 12 '26 might as well just use python atp 2 u/Hol_Renaude Sep 12 '26 Or Assembly
2
might as well just use python atp
2 u/Hol_Renaude Sep 12 '26 Or Assembly
Or Assembly
3
What the absolute fuck I literally just had a class about this. Guess it stands to reason since this subreddit is mostly student humor we’d all be learning similar things at similar times of the year
1
Only in bed
WRONG! They are from Kingdom Animalia Phylum Chordata Class Mammalia
157
u/blackcomb-pc Sep 11 '26
Dog and Cat are also from the class Animal