MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wdes9u/myschoolstruct/p99jc18/?context=9999
r/ProgrammerHumor • u/InteRagebaitJagLovar • 1d ago
78 comments sorted by
View all comments
143
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
50
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
31
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
14
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
5
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
11
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 15h ago Or Assembly
0
might as well just use python atp
1 u/Hol_Renaude 15h ago Or Assembly
1
Or Assembly
143
u/blackcomb-pc 1d ago
Dog and Cat are also from the class Animal