Good programming practice:
- takes no argument
- return an integer
#include <iostream>
#include "console.h"; //custom Stanford library
using namespace std; //should come after everything else
int main() {
cout<< "Hello, world." << endl;
return 0;
}
- pushes into console (daisy chain)
Never use globals!
Make sure you thought out exceptions