
C Programming
Contents
Basics of C++ Programming
- Program begins with
main()
, executing statements in braces{}
- statements on a line ends with a semicolon
#include <iostream>
main() {
/*
Enter statements here
cin >> "Input goes into this thing"
cout << "This thing prints out"
*/
// or here
}
Compiling
Programs can still compile with logic errors. Compile to show all logic errors via:
g++ -Wall yourfile.cpp