i get an error that says: Error C2065: 'test1' : undeclared
test1 has been declare - what is the problem? this is my code:
#include%26lt;iostream%26gt;
#include %26lt;iomanip%26gt;
using std:: cout;
using std::cin;
using std::endl;
using std::setprecision;
using std::fixed;
//fucntion prototype
void getTestScores (double%26amp;, double%26amp;, double%26amp;);
double calcAverage(double%26amp;, double%26amp;, double%26amp;);
void displayAverage(double);
int main ()
{
//decalare variables
double testl = 0.0;
double test2 = 0.0;
double test3 = 0.0;
double average = 0.0;
double getAverage = 0.0;
//enter functions to het input items
getTestScores(testl, test2, test3);
getAverage = calcAverage(test1, test2, test3);
displayAverage(average);
return 0;
} //end of main function
//**program defined functions ****
Why my C++ program in not working?help please!!?
Looking at the code you have 2 different variables - one called 'test1' with a number one, and you also have one called 'textl' with a lower case 'L' -- this one happens to be the one that is declared.
Reply:www.kosamba.com
Pay these indians to do your programming... dont pay over 20 bucks!
Reply:In the code you pasted, it looks like you have some that are "test L" and some that are "test1". Verify that all of them are correct.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment