Hello World   C++


Summary

Print 'Hello World!' text.


Requirements

none.


#include <iostream>

int main(int argc, char* argv[]) {
    std::cout << "Hello World!" << std::endl;
    return 0;
}

the 'cout' keyword is in the 'std' namespace, so 'std::' mean is using 'std' namespace.
'<<' is input. so the "Hello World!" text is input to 'std::cout'.
'std::cout' executes print out the "Hello World!" text.
'std::endl' is write 'new-line' character and flush buffer.


Result

Hello World!

Tags

#cout  #echo  #helloworld  #printf 


[ Edit (Author only) ]