1 / 16

CSCI 230 Computing-I

CSCI 230 Computing-I. Welcome to CSCI 230! Compiling Your First Program Using Microsoft Visual Studio 2005. Objectives for the Lab. Learn the difference between client-side and server-side programming Learn how to open an empty solution and project under Visual Studio .Net

presley
Télécharger la présentation

CSCI 230 Computing-I

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CSCI 230Computing-I Welcome to CSCI 230! Compiling Your First Program Using Microsoft Visual Studio 2005

  2. Objectives for the Lab • Learn the difference between client-side and server-side programming • Learn how to open an empty solution and project under Visual Studio .Net • Compile and run a simple program

  3. Client-side vs Server-side compiling • Environment setup • Install MS VS .Net 2005 from iuware.iu.edu • Client-side compiling runs locally on your computer • Requires installation of a compiler on your system • Consumes local CPU and hard disk space • No network (internet) connectivity required • Service-side compiling runs remotely on a server • Requires remote access software such as SSH available from iuware.iu.edu • Server is typically more powerful CPU and has more storage. • Typically used for larger projects • Easier to implement team development environment • Normally uses a command line interface rather than graphical • Network (internet) connectivity required • Used for business applications that require production infrastructure (production monitoring, nightly backups, etc.)

  4. Start Microsoft Visual Studio 2005 • Start → All Programs → Microsoft Visual Studio 2005 → Microsoft Visual Studio 2005

  5. Starting for the first time • The first time you run MSVS, you might get a window like this. • Use General Development Settings if you have no preference.

  6. Initial MSVS Dialog • Here is an image of the initial MSVS Dialog.

  7. Opening a New Project • Open a project using File → New → Project…

  8. Choose a Project Type and Name • Choose a Visual C++ Win32 Project Type • Choose Win32 Console Application • Enter a name for your project.

  9. Project Settings • Choose Next > from the initial dialog.

  10. Project Settings (continued) • Be sure to select Empty project and Finish.

  11. Add a New Item • Right-click on Source File and Add a New Item.

  12. Create a main.c • Choose Visual C++ Code, C++ File named main.c.

  13. Enter your program into main.c • Enter a standard C program into main.c. You get to use your mouse, copy, paste, and everything!

  14. Start your program • Select Debug → Start without Debugging.

  15. Examine your output • Your program ran. Check it out!

  16. Congratulations! • You created a new Microsoft Visual Studio 2005 Project. • Selected Visual C++ Win32 Console Application. • Created your own main.c file, entering code just like in class. • And started your program to produce output/ • All of this using an easy editor and never logging onto the internet.

More Related