create a c++ program: visual studio
 
home | 163 | 202 | 244 | 253 | 355   .   courses | advisees | faq | honesty | schedule   .   webHelp | unixHelp | c*Help | asmHelp

   
 0. Translate algorithm into C++ 
  1. Open Microsoft Visual Studio
    - Click on the desktop icon   OR   Click Start menu and find
  2. New Project / Visual C++ / Win32 Console Application
    - Enter Name for Project (helloWorld)
    - Note location
    - Check 'create directory for solution'
  3. Wizard: Click Application Settings
    - Check 'empty project' ***!!!
    - Finish
  4. Project/ Add New Item
    - Code
    - C++ File
    - Enter Name for file (main.cpp)
  5. visual studio
  6. Enter Code!
          // Hello World Program
          #include <iostream>
          using namespace std;   
          int main()
          {
             cout << "Hello World!" << endl;
             return 0;
          } 

  7. Build / Build helloWorld compiles the program
    - If no syntax errors, message on status bar "Build Succeeded"
    - 'Error List' window opens at bottom if there are syntax errors
  8. Executing your newly compiled code:
    - Ctrl-F5 runs the code NODEBUG (to add button: 'Tools/Customize')
    - Debug / Start Debugging - executes the code
  9. Check now for LOGIC ERRORS
  10. Visual C++ .NET Tutorials including installation and use