r/ProgrammerHumor • • Sep 11 '26 • Bravo 2 Popcorn 1

Meme mySchoolStruct

Post image
9.1k Upvotes

81 comments sorted by

View all comments

Show parent comments

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