+ 1

insertations after cout

For Cout<<"this"<<"is"<<"awesome"; Cant you just do one quotation and insertation or do you have to split it up?

6th Aug 2017, 5:38 PM
Julius
8 Respuestas
+ 5
@Jame edit how about: using std::cout; using std::endl; cout << "This is awesome!" << endl;
6th Aug 2017, 11:51 PM
Manual
Manual - avatar
+ 2
char mess[]= {'t','h','i','s',' ','i','s',' ','a','w','e','s','o','m','e','\0'}; long way
6th Aug 2017, 5:50 PM
Manual
Manual - avatar
6th Aug 2017, 6:07 PM
Manual
Manual - avatar
+ 2
std::cout << "thisisawesome"; will produce what you posted, I'd suggest std::cout << "This be awesome.\n"; to make it look good.
6th Aug 2017, 11:41 PM
Jamie
Jamie - avatar
+ 1
Try cout << "This is awesome!" << endl;
6th Aug 2017, 5:42 PM
Manual
Manual - avatar
+ 1
If that is what you wanted to do then yes
6th Aug 2017, 5:43 PM
Manual
Manual - avatar
+ 1
You can also wrote cout<<"this is awesome"; It's the easier way.
6th Aug 2017, 5:43 PM
Lara Simić
Lara Simić - avatar
+ 1
@Lara using endl is part of my puesdo code.
6th Aug 2017, 5:46 PM
Manual
Manual - avatar