// Program to convert temp 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[]_
{
//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 converstion 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 << end1;
//wait until user is ready before terminating program
// to allow the user to see the program results
system("PAUSE");
return 0;
}
^^^^
That's my code. Here is the error message;
http://img513.images.../4844/cplus.jpg
Can anyone tell me what's wrong?
many thanks
Edited by bizarrebob, 24 February 2009 - 01:22 PM.