+ 3

What does the following mean...#include <iostream>....using namespace std; .... <<cout"hello world" ....return 0;

7th Mar 2017, 1:09 PM
Siyabonga Mkhatshwa
Siyabonga Mkhatshwa - avatar
3 Respostas
+ 10
#include <iostream> // includes the iostream header file which contains the libraries which allows you to get user input and output stuff to the console. Imagine if you're going to work, and you need to bring your brain in order for you to function normally. ... yeah. using namespace std; // So turns out that you need to tell everyone that hey, you are using your brain to function before doing something. You think this is ridiculously tiresome and want to cut short of the obvious. So this line enables everybody to know that you are using your brain without you telling them. int main() // this is where you enter your office and begin to work cout << "Hello World!"; // You go into your office and shout out to everyone listening. "Hello World!" return 0; // You leave your office after completing your work.
7th Mar 2017, 1:23 PM
Hatsy Rei
Hatsy Rei - avatar
+ 1
thanks Rei
7th Mar 2017, 1:25 PM
Siyabonga Mkhatshwa
Siyabonga Mkhatshwa - avatar
+ 1
thx
11th Mar 2017, 1:43 AM
Muhammad Rejka Permana
Muhammad Rejka Permana - avatar