Info on Visual Studio

Simple Steps to create a project in Visual Studio:

  1. Log in using your UWNetId (with @uw.edu) and password. (Likely only needed the first time.)
  2. Choose "Create a new project" (or choose "Open a project or solution" for an existing project).
  3. For a new project, click on the drop-down menu (that says "All languages") and choose C++.
  4. choose "Empty Project" (that shows "C++" "Windows" and "Console").
  5. Give the project and solution an appropriate name, e.g., Lab1
    (Remember the Location where your projects are stored so you can find the files later.)
    Check the box for "Place solution and project in the same directory".
  6. When your project opens, your files for this course will include Header files (.h files), Resource files (data files), and Source files (.cpp files), shown in the upper right box.
    Right click on Header or Source files to add a new or existing file.

Now to compile and run ...

From the "Build" menu, compile and link your code using "Build ProjectName" .
Execute ( "Start Without Debugging" ) from the "Debug" menu.
For compiler errors, double click the error to go to the line with the error.

If you need to use a datafile:
  1. Find the folder with your project.
  2. Copy or move the data file to the project folder.
  3. Then add the existing file under Resources.

Later, when your programs are more complex, if something odd occurs, files can get corrupted (object code files, not source code files). Under the "Build" menu, "Clean ProjectName" is useful. It removes all files created by compiling and allows you to start over.