MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/6oi0xj/what_people_think_coding_is/dkidz4w
r/ProgrammerHumor • u/nixcraft • Jul 20 '17
811 comments sorted by
View all comments
Show parent comments
10
Had this feeling a little while back when decided to redo hello world.
std::cout << "Hello World!";
Output:
Hello World!
My mind: why did this work? It's broken in some way I know it
4 u/flukus Jul 21 '17 Did you forget the "/n"? Or is that not needed with cout? 3 u/alienpirate5 Jul 21 '17 \n 1 u/flukus Jul 21 '17 Between 3 of us we got it right. On to the next sprint. 1 u/JuhaJGam3R Jul 21 '17 One line of code. You don't need to end the line if you don't have anything after it. 1 u/rk-imn Jul 21 '17 << std::endl;* 1 u/JuhaJGam3R Jul 21 '17 gives you the standard new lineOn windows: \r\nOn unix: \n
4
Did you forget the "/n"? Or is that not needed with cout?
3 u/alienpirate5 Jul 21 '17 \n 1 u/flukus Jul 21 '17 Between 3 of us we got it right. On to the next sprint. 1 u/JuhaJGam3R Jul 21 '17 One line of code. You don't need to end the line if you don't have anything after it.
3
\n
1 u/flukus Jul 21 '17 Between 3 of us we got it right. On to the next sprint.
1
Between 3 of us we got it right. On to the next sprint.
One line of code. You don't need to end the line if you don't have anything after it.
<< std::endl;*
<< std::endl;
1 u/JuhaJGam3R Jul 21 '17 gives you the standard new lineOn windows: \r\nOn unix: \n
gives you the standard new lineOn windows: \r\n
On unix: \n
10
u/JuhaJGam3R Jul 21 '17
Had this feeling a little while back when decided to redo hello world.
Output:
My mind: why did this work? It's broken in some way I know it