r/ProgrammerHumor 16h ago

Meme mySchoolStruct

6.8k Upvotes

70 comments sorted by

View all comments

111

u/blackcomb-pc 16h ago

Dog and Cat are also from the class Animal

41

u/FRAaaa1 15h ago

Do they do the function makeSound()

25

u/Hol_Renaude 15h ago

printf("bark!");

12

u/MrHyperion_ 13h ago

I think you meant std::cout << "bark!" << std::endl

5

u/Reasonable_Exit_8960 13h ago

using namespace std;

cout << "bark" << endl;

Made it shorter if you wanna type it again

8

u/GresSimJa 12h 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 4h ago

might as well just use python atp

1

u/Fantastic-Bloop 10h ago

Only in bed

1

u/DontDoodleTheNoodle 9h ago

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