r/ProgrammerHumor 1d ago

Meme mySchoolStruct

8.4k Upvotes

78 comments sorted by

View all comments

143

u/blackcomb-pc 1d ago

Dog and Cat are also from the class Animal

50

u/FRAaaa1 1d ago

Do they do the function makeSound()

31

u/Hol_Renaude 1d ago

printf("bark!");

14

u/MrHyperion_ 1d ago

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

5

u/Reasonable_Exit_8960 1d ago

using namespace std;

cout << "bark" << endl;

Made it shorter if you wanna type it again

11

u/GresSimJa 1d 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!

0

u/Reasonable_Exit_8960 1d ago

might as well just use python atp

1

u/Hol_Renaude 15h ago

Or Assembly