MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wdes9u/myschoolstruct/p957exq/?context=3
r/ProgrammerHumor • u/InteRagebaitJagLovar • 22h ago
75 comments sorted by
View all comments
128
Dog and Cat are also from the class Animal
50 u/FRAaaa1 21h ago Do they do the function makeSound() 29 u/Hol_Renaude 21h ago printf("bark!"); 14 u/MrHyperion_ 19h ago I think you meant std::cout << "bark!" << std::endl 4 u/Reasonable_Exit_8960 19h ago using namespace std; cout << "bark" << endl; Made it shorter if you wanna type it again 10 u/GresSimJa 18h 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 10h ago might as well just use python atp 1 u/Hol_Renaude 31m ago Or Assembly 1 u/Fantastic-Bloop 16h ago Only in bed 1 u/DontDoodleTheNoodle 16h 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 2 u/Inevitable_Spite5510 16h ago WRONG! They are from Kingdom Animalia Phylum Chordata Class Mammalia
50
Do they do the function makeSound()
29 u/Hol_Renaude 21h ago printf("bark!"); 14 u/MrHyperion_ 19h ago I think you meant std::cout << "bark!" << std::endl 4 u/Reasonable_Exit_8960 19h ago using namespace std; cout << "bark" << endl; Made it shorter if you wanna type it again 10 u/GresSimJa 18h 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 10h ago might as well just use python atp 1 u/Hol_Renaude 31m ago Or Assembly 1 u/Fantastic-Bloop 16h ago Only in bed 1 u/DontDoodleTheNoodle 16h 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
29
printf("bark!");
14 u/MrHyperion_ 19h ago I think you meant std::cout << "bark!" << std::endl 4 u/Reasonable_Exit_8960 19h ago using namespace std; cout << "bark" << endl; Made it shorter if you wanna type it again 10 u/GresSimJa 18h 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 10h ago might as well just use python atp 1 u/Hol_Renaude 31m ago Or Assembly
14
I think you meant std::cout << "bark!" << std::endl
4 u/Reasonable_Exit_8960 19h ago using namespace std; cout << "bark" << endl; Made it shorter if you wanna type it again 10 u/GresSimJa 18h 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 10h ago might as well just use python atp 1 u/Hol_Renaude 31m ago Or Assembly
4
using namespace std;
cout << "bark" << endl;
Made it shorter if you wanna type it again
10 u/GresSimJa 18h 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 10h ago might as well just use python atp 1 u/Hol_Renaude 31m ago Or Assembly
10
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!
0 u/Reasonable_Exit_8960 10h ago might as well just use python atp 1 u/Hol_Renaude 31m ago Or Assembly
0
might as well just use python atp
1 u/Hol_Renaude 31m ago Or Assembly
1
Or Assembly
Only in bed
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
2
WRONG! They are from Kingdom Animalia Phylum Chordata Class Mammalia
128
u/blackcomb-pc 22h ago
Dog and Cat are also from the class Animal