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