I write it like this (cout <<"this is awesome "; but no output why that happen?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

I write it like this (cout <<"this is awesome "; but no output why that happen??

25th Jan 2017, 4:49 AM
mohammed mansour
7 Answers
+ 7
Post your entire code if you may =^=
25th Jan 2017, 5:23 AM
Hatsy Rei
Hatsy Rei - avatar
+ 2
If your program would compile, maybe you should flush the output adding "endl" at the end of the string in this way: cout<<"this is awersome"<<endl;
25th Jan 2017, 5:59 AM
Michael Isac Girardi
Michael Isac Girardi - avatar
+ 2
no ) I think so
29th Jan 2017, 2:51 PM
Konduru. Chandana Sree
Konduru. Chandana Sree - avatar
+ 1
do #include <iostream> using namespace std; int main() { cout << "moo"; return 0; } ____________________ I know its basic but it is much simpler because its the first thing you learn
1st Feb 2017, 2:57 PM
moocow
0
This might be helpful, Using namespace std; Or Std::cout Also, your spacing seems off..
25th Jan 2017, 4:51 AM
Nathan
Nathan - avatar
0
Are you working in the app or on computer in IDE/Compiler? Also, full code would be helpful. :)
5th Feb 2017, 12:42 PM
Amber Nestor Gregory
Amber Nestor Gregory - avatar
- 1
what you mean ? in last line
25th Jan 2017, 5:09 AM
mohammed mansour