Hi everyone..
This code was from a book and I was trying to compile it with VC++ Express.
Code:
#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 conversion factor to convert celsius into fahrenheit value
int fahrenheit;
fahrenheit = factor * celsius/100 + 32;
//output the results (followed by an Newline)
cout <<"Fahrenheit value is: ";
cout <<fahrenheit <<endln;
//wait until user is ready before terminating program to allow the
//user to see the program results
system ("PAUSE");
return 0;
}
And this is the error I get. I probably didn't include necessary files. I am new at C++ and I am still learning my way to libraries and such.
Thanks...
Code:
'temp.exe': Loaded 'C:\Documents and Settings\Tangog\My Documents\Visual Studio 2005\Projects\temp\debug\temp.exe', Binary was not built with debug information.
'temp.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded.
'temp.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols loaded.
The program '[1556] temp.exe: Native' has exited with code 0 (0x0).