// Lab 1 Lecture - Parts of a Program Review // Another syntax for writing comments /* parts of a simple C++ program */ // Preprocessor Directives // iostream is a library that provides us with extra tools and functions // that will help us to write our programs. The #include is telling the // compiler that we want to include a library (iostream). The "cout" // statement is one of the tools that is included in the iostream library. #include using namespace std; // main function declaration int main() { // opening and closing braces show beginning and end of the 'main' function // statements that do stuff cout << "Who are you that can summon fire without flint or tinder?" << endl; cout << "There are some who call me.... Tim" << endl; // Exit the program return 0; } // A very useful tool that Code Blocks provides is the ability to comment out // sections of code. You can comment out a section of code by highlighting // the code you wish to comment out and pressing Ctrl+Shift+C. Likewise, // you can uncomment a section of code with Ctrl+Shift+X. Try commenting out // the above program.