Section 5.7 C and C++
Now for the most famous program of all time! This program is often the first program someone will write in a new language. Here it is presented in the original C language!
You can also have C++ code in an activecode.
.. activecode:: lc2
:language: cpp
:stdin: 100
:compileargs: ['-std=c++11', '-Wall', '-Wpedantic']
#include <iostream>
using namespace std;
int main() {
cout << "Hello World!" << endl; cout << "Welcome to C++ Programming" << endl;
}
You have attempted of activities on this page.