1 / 10

How to start Visual Studio 2008 or 2010 (command-line program)

Learn how to start Visual Studio 2008 or 2010 and create a new command-line program. This tutorial can also be applied to Visual Studio 2013. Follow the step-by-step instructions to create and run your program.

wproctor
Download Presentation

How to start Visual Studio 2008 or 2010 (command-line program)

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. How to startVisual Studio 2008 or 2010(command-line program) Can be applied to Visual Studio 2013

  2. Run Visual Studio 2008 andcreate new project

  3. 1.Select console application 2.Insert project name 3.Click OK

  4. Visual Studio 2008Creating Command-Line Program 5. Select 4.Click “Next” 6.Click “Finish”

  5. Visual Studio 2008Creating Command-Line Program ex1-1.c 7.Click Mouse-right-button 8.Insert the name of C source file “ex1-1.c”

  6. Visual Studio 2008Creating Command-Line Program

  7. Exercise 0 • Run your Visual Studio 2008 or 2013. • Create a new “project” and add a new C file to the project. • Write following simple C code • Build (F7) • Execute (Ctrl F5) #include <stdio.h> int main() { printf(“Hello C Programming!\n”); return 0; }

  8. 1(a). Write a program that will obtain the length and width of a rectangle from the user and compute its area and perimeter. (Use float type for all variables.) Output Example : 1.4 2.1 (------- keyboard user input) 2.940000 , 7.000000

  9. 1(b). Write a program that reads in the radius(반지름) of a circle and prints the circle’s diameter(지름), circumference(둘레), and area(면적). Use the constant value 3.14159 for PI. #include <stdio.h> int main() { float radius, diameter, circumference, area; // put your code here // use scanf to get the value of radius // use printf to display the result of calculation. } Output Example : Get radius? 3.5 diameter = 7.000000 , circumference = 21.991130 , area = 38.484477

  10. 2. Write a program to convert a temperature in degrees Fahrenheit to degrees Celsius. Celsius = 5.0 / 9.0 * (fahrenheit – 32) Output Example : 105.3 (------- keyboard user input) 40.722225

More Related