Image via Wikipedia
This is the simples C++ program. It displays a sentence on the console or the terminal |
#include <iostream> using namespace std; int main() { std::cout << "Welcome to the wonderful world of C++!!!\n"; return 0; }Version 2
#include <iostream> using namespace std; int main() { cout << "Welcome to the wonderful world of C++!!!\n"; return 0; }
Here is an example of running the program:
Welcome to the wonderful world of C++!!!
0 comments:
Post a Comment