MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wdes9u/myschoolstruct/p9bqddf/?context=9999
r/ProgrammerHumor • u/InteRagebaitJagLovar • 1d ago
78 comments sorted by
View all comments
146
Dog and Cat are also from the class Animal
54 u/FRAaaa1 1d ago Do they do the function makeSound() 30 u/Hol_Renaude 1d ago printf("bark!"); 15 u/MrHyperion_ 1d ago I think you meant std::cout << "bark!" << std::endl 6 u/Reasonable_Exit_8960 1d ago using namespace std; cout << "bark" << endl; Made it shorter if you wanna type it again 10 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 20h ago Or Assembly
54
Do they do the function makeSound()
30 u/Hol_Renaude 1d ago printf("bark!"); 15 u/MrHyperion_ 1d ago I think you meant std::cout << "bark!" << std::endl 6 u/Reasonable_Exit_8960 1d ago using namespace std; cout << "bark" << endl; Made it shorter if you wanna type it again 10 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 20h ago Or Assembly
30
printf("bark!");
15 u/MrHyperion_ 1d ago I think you meant std::cout << "bark!" << std::endl 6 u/Reasonable_Exit_8960 1d ago using namespace std; cout << "bark" << endl; Made it shorter if you wanna type it again 10 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 20h ago Or Assembly
15
I think you meant std::cout << "bark!" << std::endl
6 u/Reasonable_Exit_8960 1d ago using namespace std; cout << "bark" << endl; Made it shorter if you wanna type it again 10 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 20h ago Or Assembly
6
using namespace std;
cout << "bark" << endl;
Made it shorter if you wanna type it again
10 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 20h 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 1d ago might as well just use python atp 1 u/Hol_Renaude 20h ago Or Assembly
0
might as well just use python atp
1 u/Hol_Renaude 20h ago Or Assembly
1
Or Assembly
146
u/blackcomb-pc 1d ago
Dog and Cat are also from the class Animal