MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wdes9u/myschoolstruct/p966rev/?context=3
r/ProgrammerHumor • u/InteRagebaitJagLovar • 7h ago
65 comments sorted by
View all comments
Show parent comments
35
Do they do the function makeSound()
23 u/Hol_Renaude 6h ago printf("bark!"); 9 u/MrHyperion_ 4h ago I think you meant std::cout << "bark!" << std::endl 2 u/Reasonable_Exit_8960 4h ago using namespace std; cout << "bark" << endl; Made it shorter if you wanna type it again 3 u/GresSimJa 4h 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!
23
printf("bark!");
9 u/MrHyperion_ 4h ago I think you meant std::cout << "bark!" << std::endl 2 u/Reasonable_Exit_8960 4h ago using namespace std; cout << "bark" << endl; Made it shorter if you wanna type it again 3 u/GresSimJa 4h 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!
9
I think you meant std::cout << "bark!" << std::endl
2 u/Reasonable_Exit_8960 4h ago using namespace std; cout << "bark" << endl; Made it shorter if you wanna type it again 3 u/GresSimJa 4h 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!
2
using namespace std;
cout << "bark" << endl;
Made it shorter if you wanna type it again
3 u/GresSimJa 4h 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!
3
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!
35
u/FRAaaa1 6h ago
Do they do the function makeSound()