dev c++ compile errors

here is code

#include <iostream>

using namespace std;

int Main()
{
int First = 0;
int Second = 0;

cout << "Simple Calculator v0.5\n\n";

cout << "Symbols =\n";
cout << "Add +\n";
cout << "Subtract -\n";
cout << "Multiply *\n";
cout << "Divide /\n\n";

cout << "First Number >";
cin >> First;

cout << "\n\n";

cout << "Second Number >";
cin >> Second;

cout << "\n\n";

Operater()
}

char Operater()
{
char Operater = A;

cout << "Type of sum >";
cin >> Operater;
}

here are the errors

Circular Main <- Main.o dependency dropped.
Last edited on
I think that main() should be in lower case. Also, your function needs to be defined before it's called. Also, you're not returning a value.
Last edited on
Circular Main <- Main.o dependency dropped.
After you fix everything %51 told you, the last line in main() ("Operater()") is missing a semicolon, you're assigning an undefined variable called "A" to Operater (it doesn't sound like such a good idea to have a variable with the same name as a function, by the way), not the character 'A'.

That seems about it. If you're calling the compiler directly from command line, you may have mistyped something. That's the first time I've seen that error in three years.
Topic archived. No new replies allowed.