Help my program wont work :(

hi there i am in the middle of a build for a convertion program but for some resen during the compiling i keep geting cout errors if somone culd take a look at it for me and give some feedback i wuld be verry gratefull

//
// Conversion - Program to convert temperature from
// Celsius degrees into Fahrenheit:
// Fahrenheit = Celsius * (212 - 32)/100 + 32
//
#include <cstdio>

#include <cstdlib>
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 values
int fahrenheit;
farenheit = factor * celsius/100 + 32;

//output the results (followed by NewLine)
count << "Fahrenheit value is:";
count << farenheit << end1;

// wate until user is ready before terminating the program
// to allow the user to see the program results
system("PAUSE");
return 0;
}


and the error coads are :

Conversion\main.cpp||In function 'int main(int, char**)':|
Conversion\main.cpp|15|error: 'cout' was not declared in this scope|
Conversion\main.cpp|16|error: 'cin' was not declared in this scope|
Conversion\main.cpp|26|error: 'farenheit' was not declared in this scope|
Conversion\main.cpp|29|error: 'count' was not declared in this scope|
Conversion\main.cpp|30|error: 'end1' was not declared in this scope|
Conversion\main.cpp|25|warning: unused variable 'fahrenheit'|
||=== Build finished: 5 errors, 1 warnings ===|
You shall include header <iostream> instead of <cstdio>
hi there it has helped puting iostream but i am still geting errers during the build

the errer this time is :||=== Conversion, Debug ===|
\Conversion\main.cpp||In function 'int main(int, char**)':|
\Conversion\main.cpp|26|error: 'farenheit' was not declared in this scope|
\Conversion\main.cpp|29|error: 'count' was not declared in this scope|
\Conversion\main.cpp|30|error: 'end1' was not declared in this scope|
\Conversion\main.cpp|25|warning: unused variable 'fahrenheit'|
||=== Build finished: 3 errors, 1 warnings ===|
farenheit is a spelling error.

'count' was not declared in this scope|
means you need to declare this variable.

end1 is a spelling error - it is endl with an ell not a one.

unused variable 'fahrenheit'|
related to the first spelling error.

Why do you bother with int main (int nNumberofArgs, char* pszArgs[]) when you don't make use of the variables nNumberofArgs or pszArgs ?

If you do need to use them later on, why can't you stick to the standard arc argv notation?
Topic archived. No new replies allowed.