C++ Hello World program
kw.cpp
#include <iostream>
using namespace std;
int main()
{
    cout<<"Hello, World!\n";

    cout<<(char)72<<(char)69<<(char)76<<(char)76<<(char)79<<(char)32<<(char)87<<(char)79<<(char)82<<(char)76<<(char)68<<(char)33<<"\n";

    cout<<"\"Hello, World!\"\n";

    cout<<"\'Hello, World!\'\n";
    return 0;
}
Output
kodingwindow@kw:~$ g++ kw.cpp
kodingwindow@kw:~$ ./a.out Hello, World! HELLO WORLD "Hello, World!" 'Hello, World!' kodingwindow@kw:~$
Advertisement