Course List: http://www.c-jump.com/bcc/

cis155_Ch2_lecture


  1. Reading the book
  2. How to succeed
  3. First Week's Homework
  4. Programming practice
  5. Textbook Chapter 2, Hello, World!
  6. Microsoft Visual Studio Project
  7. Download std_lib_facilities.h
  8. Build and run the project
  9. Adding keep_window_open();
  10. Quick overview of the first program

1. Reading the book



2. How to succeed



3. First Week's Homework



4. Programming practice



5. Textbook Chapter 2, Hello, World!



6. Microsoft Visual Studio Project


  1. Start Visual Studio.

  2. Create a new project

    
        File -> New -> Project
    
    
  3. Make sure to select "C++ language" and "Empty Project"

  4. Name your project, e.g. MyFirstProgram

  5. Specify location of your project (all dirs will be created if they don't exist):

    
        D:\CIS155\Projects
    
    
  6. Uncheck "Create directory for solution"

  7. Click Next

  8. On the main menu click

    
        View -> Solution Explorer
    
    
  9. Right-click "Source Files", then

    
        Add -> New Item...
    
    

    and select CPP file type. Name it main.cpp. Specify Location:

    
        D:\CIS155\Projects\MyFirstProgram\src
    
    

    The src subdirectory will be created before the new source file is created. (In this course we will keep all of our C++ code in the src subdirectory.) Once added, main.cpp opens in the source code editor as an empty file.

  10. Copy and paste the code for the classic first program.

  11. Save the file.

     


7. Download std_lib_facilities.h



8. Build and run the project



9. Adding keep_window_open();



10. Quick overview of the first program