starting with visual studio - university of texas at...
TRANSCRIPT
![Page 1: Starting with Visual Studio - University of Texas at …ranger.uta.edu/~iahmad/StartingVisualStudio.pdfStarting with Visual Studio • When Visual Studio first starts, the system will](https://reader031.vdocuments.us/reader031/viewer/2022030510/5aba4f9b7f8b9ad13d8eaa6a/html5/thumbnails/1.jpg)
Starting with Visual Studio
![Page 2: Starting with Visual Studio - University of Texas at …ranger.uta.edu/~iahmad/StartingVisualStudio.pdfStarting with Visual Studio • When Visual Studio first starts, the system will](https://reader031.vdocuments.us/reader031/viewer/2022030510/5aba4f9b7f8b9ad13d8eaa6a/html5/thumbnails/2.jpg)
Starting with Visual Studio
• When Visual Studio first starts, the system will come up with no active solution or project, and may have a “Start Screen” to display what was worked on last.
![Page 3: Starting with Visual Studio - University of Texas at …ranger.uta.edu/~iahmad/StartingVisualStudio.pdfStarting with Visual Studio • When Visual Studio first starts, the system will](https://reader031.vdocuments.us/reader031/viewer/2022030510/5aba4f9b7f8b9ad13d8eaa6a/html5/thumbnails/3.jpg)
Starting with Visual Studio
![Page 4: Starting with Visual Studio - University of Texas at …ranger.uta.edu/~iahmad/StartingVisualStudio.pdfStarting with Visual Studio • When Visual Studio first starts, the system will](https://reader031.vdocuments.us/reader031/viewer/2022030510/5aba4f9b7f8b9ad13d8eaa6a/html5/thumbnails/4.jpg)
Starting with Visual Studio
• All Visual Studio programs require a Solution and a Project before the file can actually be added into the system. Start out by going to File on the main menu.
![Page 5: Starting with Visual Studio - University of Texas at …ranger.uta.edu/~iahmad/StartingVisualStudio.pdfStarting with Visual Studio • When Visual Studio first starts, the system will](https://reader031.vdocuments.us/reader031/viewer/2022030510/5aba4f9b7f8b9ad13d8eaa6a/html5/thumbnails/5.jpg)
Starting with Visual Studio
![Page 6: Starting with Visual Studio - University of Texas at …ranger.uta.edu/~iahmad/StartingVisualStudio.pdfStarting with Visual Studio • When Visual Studio first starts, the system will](https://reader031.vdocuments.us/reader031/viewer/2022030510/5aba4f9b7f8b9ad13d8eaa6a/html5/thumbnails/6.jpg)
Starting with Visual Studio
• Next, select New and a second menu will appear. On this second menu, select Project.
![Page 7: Starting with Visual Studio - University of Texas at …ranger.uta.edu/~iahmad/StartingVisualStudio.pdfStarting with Visual Studio • When Visual Studio first starts, the system will](https://reader031.vdocuments.us/reader031/viewer/2022030510/5aba4f9b7f8b9ad13d8eaa6a/html5/thumbnails/7.jpg)
Starting with Visual Studio
![Page 8: Starting with Visual Studio - University of Texas at …ranger.uta.edu/~iahmad/StartingVisualStudio.pdfStarting with Visual Studio • When Visual Studio first starts, the system will](https://reader031.vdocuments.us/reader031/viewer/2022030510/5aba4f9b7f8b9ad13d8eaa6a/html5/thumbnails/8.jpg)
Starting with Visual Studio
• A dialog box will appear, called New Project.
• Inside of this dialog box, select Win32 and Win32 Console Application.
![Page 9: Starting with Visual Studio - University of Texas at …ranger.uta.edu/~iahmad/StartingVisualStudio.pdfStarting with Visual Studio • When Visual Studio first starts, the system will](https://reader031.vdocuments.us/reader031/viewer/2022030510/5aba4f9b7f8b9ad13d8eaa6a/html5/thumbnails/9.jpg)
Starting with Visual Studio
![Page 10: Starting with Visual Studio - University of Texas at …ranger.uta.edu/~iahmad/StartingVisualStudio.pdfStarting with Visual Studio • When Visual Studio first starts, the system will](https://reader031.vdocuments.us/reader031/viewer/2022030510/5aba4f9b7f8b9ad13d8eaa6a/html5/thumbnails/10.jpg)
Starting with Visual Studio
• Now, give the project a Name, in this example “FirstProject”, and use the Browse button to find a Location.
• The Location is important, this is where the files that make up the program will be stored, and can be navigated by using the Windows Explorer.
• Once the Name and Location are correct, click OK
![Page 11: Starting with Visual Studio - University of Texas at …ranger.uta.edu/~iahmad/StartingVisualStudio.pdfStarting with Visual Studio • When Visual Studio first starts, the system will](https://reader031.vdocuments.us/reader031/viewer/2022030510/5aba4f9b7f8b9ad13d8eaa6a/html5/thumbnails/11.jpg)
Starting with Visual Studio
![Page 12: Starting with Visual Studio - University of Texas at …ranger.uta.edu/~iahmad/StartingVisualStudio.pdfStarting with Visual Studio • When Visual Studio first starts, the system will](https://reader031.vdocuments.us/reader031/viewer/2022030510/5aba4f9b7f8b9ad13d8eaa6a/html5/thumbnails/12.jpg)
Starting with Visual Studio
• Next, the Application Wizard dialog box will open.
• On the left will be a pair of options, Overview and Application Settings.
• Select Application Settings.
![Page 13: Starting with Visual Studio - University of Texas at …ranger.uta.edu/~iahmad/StartingVisualStudio.pdfStarting with Visual Studio • When Visual Studio first starts, the system will](https://reader031.vdocuments.us/reader031/viewer/2022030510/5aba4f9b7f8b9ad13d8eaa6a/html5/thumbnails/13.jpg)
Starting with Visual Studio
![Page 14: Starting with Visual Studio - University of Texas at …ranger.uta.edu/~iahmad/StartingVisualStudio.pdfStarting with Visual Studio • When Visual Studio first starts, the system will](https://reader031.vdocuments.us/reader031/viewer/2022030510/5aba4f9b7f8b9ad13d8eaa6a/html5/thumbnails/14.jpg)
Starting with Visual Studio
• Under Application Settings,– for Application Type select Console
Application, – and for Additional Options select Empty
Project. • Once this is done, click Finish.
![Page 15: Starting with Visual Studio - University of Texas at …ranger.uta.edu/~iahmad/StartingVisualStudio.pdfStarting with Visual Studio • When Visual Studio first starts, the system will](https://reader031.vdocuments.us/reader031/viewer/2022030510/5aba4f9b7f8b9ad13d8eaa6a/html5/thumbnails/15.jpg)
Starting with Visual Studio
![Page 16: Starting with Visual Studio - University of Texas at …ranger.uta.edu/~iahmad/StartingVisualStudio.pdfStarting with Visual Studio • When Visual Studio first starts, the system will](https://reader031.vdocuments.us/reader031/viewer/2022030510/5aba4f9b7f8b9ad13d8eaa6a/html5/thumbnails/16.jpg)
Starting with Visual Studio
• Now, the Project and Solution are created and loaded into the Studio.
• The next step is to create a file in which to program.
![Page 17: Starting with Visual Studio - University of Texas at …ranger.uta.edu/~iahmad/StartingVisualStudio.pdfStarting with Visual Studio • When Visual Studio first starts, the system will](https://reader031.vdocuments.us/reader031/viewer/2022030510/5aba4f9b7f8b9ad13d8eaa6a/html5/thumbnails/17.jpg)
Starting with Visual Studio
![Page 18: Starting with Visual Studio - University of Texas at …ranger.uta.edu/~iahmad/StartingVisualStudio.pdfStarting with Visual Studio • When Visual Studio first starts, the system will](https://reader031.vdocuments.us/reader031/viewer/2022030510/5aba4f9b7f8b9ad13d8eaa6a/html5/thumbnails/18.jpg)
Starting with Visual Studio
• Go to the box called Solution Explorer, and highlight the Source Files.
• Note, different machines may have different layouts for the Studio.
• Look for the Solution Explorer Tab if the system is not immediately visible, or go to View on the main menu, and select Solution Explorer.
![Page 19: Starting with Visual Studio - University of Texas at …ranger.uta.edu/~iahmad/StartingVisualStudio.pdfStarting with Visual Studio • When Visual Studio first starts, the system will](https://reader031.vdocuments.us/reader031/viewer/2022030510/5aba4f9b7f8b9ad13d8eaa6a/html5/thumbnails/19.jpg)
Starting with Visual Studio
![Page 20: Starting with Visual Studio - University of Texas at …ranger.uta.edu/~iahmad/StartingVisualStudio.pdfStarting with Visual Studio • When Visual Studio first starts, the system will](https://reader031.vdocuments.us/reader031/viewer/2022030510/5aba4f9b7f8b9ad13d8eaa6a/html5/thumbnails/20.jpg)
Starting with Visual Studio
• Now, click Source Files with the right button on the mouse, and a submenu will appear.
![Page 21: Starting with Visual Studio - University of Texas at …ranger.uta.edu/~iahmad/StartingVisualStudio.pdfStarting with Visual Studio • When Visual Studio first starts, the system will](https://reader031.vdocuments.us/reader031/viewer/2022030510/5aba4f9b7f8b9ad13d8eaa6a/html5/thumbnails/21.jpg)
Starting with Visual Studio
![Page 22: Starting with Visual Studio - University of Texas at …ranger.uta.edu/~iahmad/StartingVisualStudio.pdfStarting with Visual Studio • When Visual Studio first starts, the system will](https://reader031.vdocuments.us/reader031/viewer/2022030510/5aba4f9b7f8b9ad13d8eaa6a/html5/thumbnails/22.jpg)
Starting with Visual Studio
• Put the mouse pointer on the word Add, and yet another menu will appear.
• This time, select New Item
![Page 23: Starting with Visual Studio - University of Texas at …ranger.uta.edu/~iahmad/StartingVisualStudio.pdfStarting with Visual Studio • When Visual Studio first starts, the system will](https://reader031.vdocuments.us/reader031/viewer/2022030510/5aba4f9b7f8b9ad13d8eaa6a/html5/thumbnails/23.jpg)
Starting with Visual Studio
![Page 24: Starting with Visual Studio - University of Texas at …ranger.uta.edu/~iahmad/StartingVisualStudio.pdfStarting with Visual Studio • When Visual Studio first starts, the system will](https://reader031.vdocuments.us/reader031/viewer/2022030510/5aba4f9b7f8b9ad13d8eaa6a/html5/thumbnails/24.jpg)
Starting with Visual Studio
• The Add New Item dialog box will appear.• In this case,
– select the C++ File from the Templateswindow,
– and give the file a name, like “MySourceCode.cpp”.
• Then, select Add
![Page 25: Starting with Visual Studio - University of Texas at …ranger.uta.edu/~iahmad/StartingVisualStudio.pdfStarting with Visual Studio • When Visual Studio first starts, the system will](https://reader031.vdocuments.us/reader031/viewer/2022030510/5aba4f9b7f8b9ad13d8eaa6a/html5/thumbnails/25.jpg)
Starting with Visual Studio
![Page 26: Starting with Visual Studio - University of Texas at …ranger.uta.edu/~iahmad/StartingVisualStudio.pdfStarting with Visual Studio • When Visual Studio first starts, the system will](https://reader031.vdocuments.us/reader031/viewer/2022030510/5aba4f9b7f8b9ad13d8eaa6a/html5/thumbnails/26.jpg)
Starting with Visual Studio• Now, a new page opens up on the Studio, where a
simple program can be typed in. • This tabbed area represents the file
“MySourceCode.cpp”. • Here, the C code can be typed in and saved and
compiled, a working area./*January 18, 2008*//*CSE 1311 Sample File*/#include <stdio.h>void main(){printf("Welcome to the World of Programming\n");
}
![Page 27: Starting with Visual Studio - University of Texas at …ranger.uta.edu/~iahmad/StartingVisualStudio.pdfStarting with Visual Studio • When Visual Studio first starts, the system will](https://reader031.vdocuments.us/reader031/viewer/2022030510/5aba4f9b7f8b9ad13d8eaa6a/html5/thumbnails/27.jpg)
Starting with Visual Studio
![Page 28: Starting with Visual Studio - University of Texas at …ranger.uta.edu/~iahmad/StartingVisualStudio.pdfStarting with Visual Studio • When Visual Studio first starts, the system will](https://reader031.vdocuments.us/reader031/viewer/2022030510/5aba4f9b7f8b9ad13d8eaa6a/html5/thumbnails/28.jpg)
Starting with Visual Studio
• Once the program has been entered, select Build from the main menu, and choose Build Solution.
![Page 29: Starting with Visual Studio - University of Texas at …ranger.uta.edu/~iahmad/StartingVisualStudio.pdfStarting with Visual Studio • When Visual Studio first starts, the system will](https://reader031.vdocuments.us/reader031/viewer/2022030510/5aba4f9b7f8b9ad13d8eaa6a/html5/thumbnails/29.jpg)
Starting with Visual Studio
![Page 30: Starting with Visual Studio - University of Texas at …ranger.uta.edu/~iahmad/StartingVisualStudio.pdfStarting with Visual Studio • When Visual Studio first starts, the system will](https://reader031.vdocuments.us/reader031/viewer/2022030510/5aba4f9b7f8b9ad13d8eaa6a/html5/thumbnails/30.jpg)
Starting with Visual Studio
• The program will now Compile, and if successful will report a success and no errors in the Output window
![Page 31: Starting with Visual Studio - University of Texas at …ranger.uta.edu/~iahmad/StartingVisualStudio.pdfStarting with Visual Studio • When Visual Studio first starts, the system will](https://reader031.vdocuments.us/reader031/viewer/2022030510/5aba4f9b7f8b9ad13d8eaa6a/html5/thumbnails/31.jpg)
Starting with Visual Studio
![Page 32: Starting with Visual Studio - University of Texas at …ranger.uta.edu/~iahmad/StartingVisualStudio.pdfStarting with Visual Studio • When Visual Studio first starts, the system will](https://reader031.vdocuments.us/reader031/viewer/2022030510/5aba4f9b7f8b9ad13d8eaa6a/html5/thumbnails/32.jpg)
Starting with Visual Studio
• Now, to run the program, select Debugfrom the main menu, and select Start Without Debugging.
![Page 33: Starting with Visual Studio - University of Texas at …ranger.uta.edu/~iahmad/StartingVisualStudio.pdfStarting with Visual Studio • When Visual Studio first starts, the system will](https://reader031.vdocuments.us/reader031/viewer/2022030510/5aba4f9b7f8b9ad13d8eaa6a/html5/thumbnails/33.jpg)
Starting with Visual Studio
![Page 34: Starting with Visual Studio - University of Texas at …ranger.uta.edu/~iahmad/StartingVisualStudio.pdfStarting with Visual Studio • When Visual Studio first starts, the system will](https://reader031.vdocuments.us/reader031/viewer/2022030510/5aba4f9b7f8b9ad13d8eaa6a/html5/thumbnails/34.jpg)
Starting with Visual Studio
• A Windows Command Prompt box will appear, and the program will be executed.
• Any output from this program will be displayed in the Command Prompt box.
![Page 35: Starting with Visual Studio - University of Texas at …ranger.uta.edu/~iahmad/StartingVisualStudio.pdfStarting with Visual Studio • When Visual Studio first starts, the system will](https://reader031.vdocuments.us/reader031/viewer/2022030510/5aba4f9b7f8b9ad13d8eaa6a/html5/thumbnails/35.jpg)
Starting with Visual Studio
![Page 36: Starting with Visual Studio - University of Texas at …ranger.uta.edu/~iahmad/StartingVisualStudio.pdfStarting with Visual Studio • When Visual Studio first starts, the system will](https://reader031.vdocuments.us/reader031/viewer/2022030510/5aba4f9b7f8b9ad13d8eaa6a/html5/thumbnails/36.jpg)
Starting with Visual Studio
• Now, in order to get the screen output from a program for a programming assignment, while this box is open, click on the icon in the upper left of the Command Prompt with the right button of the mouse.
• A menu will appear
![Page 37: Starting with Visual Studio - University of Texas at …ranger.uta.edu/~iahmad/StartingVisualStudio.pdfStarting with Visual Studio • When Visual Studio first starts, the system will](https://reader031.vdocuments.us/reader031/viewer/2022030510/5aba4f9b7f8b9ad13d8eaa6a/html5/thumbnails/37.jpg)
Starting with Visual Studio
![Page 38: Starting with Visual Studio - University of Texas at …ranger.uta.edu/~iahmad/StartingVisualStudio.pdfStarting with Visual Studio • When Visual Studio first starts, the system will](https://reader031.vdocuments.us/reader031/viewer/2022030510/5aba4f9b7f8b9ad13d8eaa6a/html5/thumbnails/38.jpg)
Starting with Visual Studio
• Move the mouse down to Edit, and yet another menu will appear.
• In this menu, select Mark.
![Page 39: Starting with Visual Studio - University of Texas at …ranger.uta.edu/~iahmad/StartingVisualStudio.pdfStarting with Visual Studio • When Visual Studio first starts, the system will](https://reader031.vdocuments.us/reader031/viewer/2022030510/5aba4f9b7f8b9ad13d8eaa6a/html5/thumbnails/39.jpg)
Starting with Visual Studio
![Page 40: Starting with Visual Studio - University of Texas at …ranger.uta.edu/~iahmad/StartingVisualStudio.pdfStarting with Visual Studio • When Visual Studio first starts, the system will](https://reader031.vdocuments.us/reader031/viewer/2022030510/5aba4f9b7f8b9ad13d8eaa6a/html5/thumbnails/40.jpg)
Starting with Visual Studio
• Now, using the mouse, highlight the text to copy by holding down the left mouse button and dragging the cursor over the text.
![Page 41: Starting with Visual Studio - University of Texas at …ranger.uta.edu/~iahmad/StartingVisualStudio.pdfStarting with Visual Studio • When Visual Studio first starts, the system will](https://reader031.vdocuments.us/reader031/viewer/2022030510/5aba4f9b7f8b9ad13d8eaa6a/html5/thumbnails/41.jpg)
Starting with Visual Studio
![Page 42: Starting with Visual Studio - University of Texas at …ranger.uta.edu/~iahmad/StartingVisualStudio.pdfStarting with Visual Studio • When Visual Studio first starts, the system will](https://reader031.vdocuments.us/reader031/viewer/2022030510/5aba4f9b7f8b9ad13d8eaa6a/html5/thumbnails/42.jpg)
Starting with Visual Studio
• Then, press Enter on the keyboard. This will now copy the text into memory and can be pasted into a word processor like Notepad or Microsoft Word. Like below.
Welcome to the World of ProgrammingPress any key to continue . . .
• That concludes a walkthrough of how to set up a project for creating and executing and capturing computer code using Visual Studio.