Any ideas on geting my program working for C++ class no idea what it needs

// Lab07 problem 1 By David Warner 2/19/11

#include <iostream>

using namespace std;

int main( )
{
double votes = 0.0;
char = ' ';

cout << "Enter votes for Amanda" << endl;
cin >> votes;
cout << "Enter votes for Ben" << endl;
cin >> votes;
cout << "Enter votes for Cyclone" << endl;
cin >> votes;


if (votes for Amanda >= votes for Ben && votes for Cylcone)
{
cout << "Amanada Wins" << endl;
}
else if (votes for Ben >= votes for Amanda && votes for Cylcone)
{
cout << "Ben Wins" << endl;
}
else if (votes for Cyclone >= votes for Ben && votes for Amanda)
{
cout << "Cylcone Wins" << endl;
}
}
system("pause");
return 0;
}
Your program makes no sense:
you are overwriting the same variable three times and then the conditions in the if are completely wrong.
Check the tutorials:
http://www.cplusplus.com/doc/tutorial/variables/
http://www.cplusplus.com/doc/tutorial/operators/
closed account (z05DSL3A)
dtw103184,

Please do not post the same question in multiple forums.
http://www.cplusplus.com/forum/general/36885/
Topic archived. No new replies allowed.