CS 1405 - Lab 1

Objective

  1. Build a simple C++ project with MS Visual Studio

Programming

  1. Follow the steps 1 through 9 of Starting a New project in Appendix M of the textbook to create a new C++ project ready for code to be entered. In step 3, set the location as the Desktop (You may choose another location if your prefer.).
  2. Enter the following source code:

    #include <iostream>
    using namespace std;
    // This program prints "Hello World"
    // to the screen

    int main()
    {
       cout << "Hello World" << endl;
       return 0;
    }
  3. Save the project by selecting Save All from the File menu.
  4. Compile and Execute your program as directed in Appendix M.
  5. Demonstrate your program for the lab instructor.
  6. Copy your project folder to a USB Flash drive or another long term storage location of your choosing.
  7. Remove your project folder from the Desktop.

©