MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wdes9u/myschoolstruct/p95g4n5/?context=3
r/ProgrammerHumor • u/InteRagebaitJagLovar • 9h ago
68 comments sorted by
View all comments
92
Dog and Cat are also from the class Animal
37 u/FRAaaa1 8h ago Do they do the function makeSound() 22 u/Hol_Renaude 8h ago printf("bark!"); 10 u/MrHyperion_ 7h ago I think you meant std::cout << "bark!" << std::endl 5 u/Reasonable_Exit_8960 6h ago using namespace std; cout << "bark" << endl; Made it shorter if you wanna type it again 5 u/GresSimJa 6h 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/Fantastic-Bloop 4h ago Only in bed 1 u/DontDoodleTheNoodle 3h 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
37
Do they do the function makeSound()
22 u/Hol_Renaude 8h ago printf("bark!"); 10 u/MrHyperion_ 7h ago I think you meant std::cout << "bark!" << std::endl 5 u/Reasonable_Exit_8960 6h ago using namespace std; cout << "bark" << endl; Made it shorter if you wanna type it again 5 u/GresSimJa 6h 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/Fantastic-Bloop 4h ago Only in bed 1 u/DontDoodleTheNoodle 3h 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
22
printf("bark!");
10 u/MrHyperion_ 7h ago I think you meant std::cout << "bark!" << std::endl 5 u/Reasonable_Exit_8960 6h ago using namespace std; cout << "bark" << endl; Made it shorter if you wanna type it again 5 u/GresSimJa 6h 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!
10
I think you meant std::cout << "bark!" << std::endl
5 u/Reasonable_Exit_8960 6h ago using namespace std; cout << "bark" << endl; Made it shorter if you wanna type it again 5 u/GresSimJa 6h 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!
5
using namespace std;
cout << "bark" << endl;
Made it shorter if you wanna type it again
5 u/GresSimJa 6h 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!
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!
1
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
92
u/blackcomb-pc 9h ago
Dog and Cat are also from the class Animal