1. Start Visual Studio. You might be asked which development settings you want (first time), select Visual C++ and the Start Visual Studio button 2. From File, select New --> Project 3. From the New Project window, select Empty Project, set the location and name as desired, select OK. Setting up the project takes a few moments. 4. If a Solution Explorer window does not appear, select View --> Solution Explorer 5. From the Solution Explorer window (it might appear on the left or right side of the Visual Studio window), right click on Source Files. If you have already written your .c and .h files, do step b below, otherwise do step a. a. Select Add --> New Item... From the Add New Item window, select C++ File and name it using .c as the extension (not .cpp), do this for each .C file you want to create. If you are creating a header file, select Add --> New Item... and select Header File and create your .h file. b. If you have already written your C program, right click on Source Files and select Add -> Existing Item... From the pop-up window, select your .c file(s). Do the same for any already written .h file(s). 6. Once your file(s) have been created/loaded, double click on any file under the Solution Explorer and that file is loaded into an editor. Move between open files by selecting their tab at the top of the editor window. Editor your program code as needed. See step 8 for compiling and running the program. 7. In order to force Visual Studio to use the C compiler (instead of the C++ compiler), do the following: For each .c file listed in the Solution Explorer, right click on the file name and select properties. From the Property window, expand the C/C++ selection in the left pane and select Advanced. In the right pane. select Default under Compile As and change this select to Compile as C Code (/TC). Click OK to close the Properites window. If you have multiple .c files, you will need to do this for all of them. 8. To compile your program, select Build --> Build Solution. If you have syntax errors, they will appear at the bottom of the window. Note that if you have warnings, you should fix them before you try to run your program as warnings often lead to run-time errors. To run your program, select Debug --> Start Debugging (or click on the green triangle that says Local Windows Debugger). If you did not successfully compile the program and an older compiled version exists, running the program will launch the old version. One source of warning that prevents your program from compiling deals with the use of scanf and fscanf, both of which are deemed "unsafe". To avoid this warning, add the following to the line before #include in your program: #define _CRT_SECURE_NO_WARNINGS 9. Visual Studio will run your program, opening a console window for input and output. As soon as the program terminates, this window closes. To force the window to remain open, add a scanf statement as the last instruction, inputting an int variable. For instance, use: scanf("%d", &var); 10. To help with logical debugging, insert break points. You can insert a break point on any line of your executable code by double clicking in the margin to the left of the editing window. To remove a break point, double click on the break point. When using Start Debugging, the program will either run through completion, until it hits a run-time error or a break point. For break points, you can select the continue button to move forward in the program until it hits the next break point.