#include // needed #include // good to have, not used in this example. using namespace std; // omg this are comment! /* This is also a comment, and it has to be ended with a */ /* This is a multiline comment */ // define function prototypes (only if function is used before it is defined, or if it is // linked in as an object int addPlz( int x, int y ); // main is the function called by the operating system. argc = argument count, // argv is a char pointer array of the arguments // (in the olden days, it was char *argv[] -- which is the same as char **) int main( int argc, char **argv ) { int cake; for( int i=0; i<25; i++ ) { cake += i / (cake - 4 * 2); // the same as (cake - 8), since order of operations rock } cout << "Cake is equal to: " << cake << "\n"; // note that typing endl there // is the same as "\n" int ans = addPlz( 2, 5 ); cout << "Answer is " << ans << endl; return 0; } int addPlz( int x, int y ) { return x + y; }