name 6 problems in the code please!

can someone please name 6 problems in the code? i can't figure them out

#include <iostream>
using namespace std;

int main()
{
int change = 0;

cout << “Please enter amount of change in your pocket, using format 0.53 : “
cin >> change;

if (change = 0)
{
cout >> “Your pockets are empty!!” << endl;
}
else if (change >= 1);
{
cout << “You have over a dollar!! << change << endl;
} else (change < 0)
{
cout << “You have “ << change << “ in your pocket” << endl;
}

}
That is your homework. Try to remember what syntactic rules you have been shown so far.

You could try to compile the code; the compiler will list problems that it sees. (That would obviously change your challenge from "regognize problems" to "understand what the compiler say".)
Exactly the same code? Coincidence much?
http://www.cplusplus.com/forum/general/198772/
Topic archived. No new replies allowed.