You are viewing our Forum Archives. To view or take place in current topics click here.
C++ Starting Method.
Posted:

C++ Starting Method.Posted:

FIashed
  • New Member
Status: Offline
Joined: May 10, 201410Year Member
Posts: 30
Reputation Power: 1
Status: Offline
Joined: May 10, 201410Year Member
Posts: 30
Reputation Power: 1
Hello, Flashed here I see many people on here needing help in the area of C++, and thought I would do a simple beginning guide!

Steps:
Finding out about C++
Installing Dev-CPP from the accompanying CD-ROM
Creating your first C++ program
Executing your program
-----------------------------------------------------------------------
Beginning Code on Dev C++:
//
// Program to convert temperature from Celsius degree
// units into Fahrenheit degree units:
// Fahrenheit = Celsius * (212 - 32)/100 + 32
//
#include <cstdio>
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int nNumberofArgs, char* pszArgs[])
----------------------------------------------------------------------------
This First line only in Dev +
// enter the temperature in Celsius
int celsius;
cout << Enter the temperature in Celsius:;
cin >> celsius;
// calculate conversion factor for Celsius
// to Fahrenheit
int factor;
factor = 212 - 32;
// use conversion factor to convert Celsius
// into Fahrenheit values
int fahrenheit;
fahrenheit = factor * celsius/100 + 32;
// output the results (followed by a NewLine)
cout << Fahrenheit value is:;
cout << fahrenheit << endl;
// wait until user is ready before terminating program
// to allow the user to see the program results
system(PAUSE);
return 0;
}
<<<<<<<<
This is the part's on Dev C++ To Begin getting started, If you need anymore help shoot me a message!
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.