error C2447: '{' : missing function header (old-style formal list?)

I'm using visual studio 2013

win32 console
c++

error C2447: '{' : missing function header (old-style formal list?)




#include <stdlib.h>
#include <iostream>
using namespace std;

int main();

{

int calificacion;
cout << "Inserte calificacion: ";
cin >> calificacion;
if (calificacion >= 80)
{
cout << "Paso con 80 0 mas. Exelente !!", << endl;
}
else if (calificacion >= 70)
{
cout << "Paso con 70 o mas" << endl;
}
else if (calificacion >= 60)
{
cout << "Paso con 60 o mas" << endl;
}
else
{
cout << "Reprobo busque que hacer por la vida, por que no tienes cerebro" << endl;
}

system("pause");
return 0;
}
Last edited on
closed account (48T7M4Gy)
What are your double commas for?
There shouldn't be a semicolon for int main

Please use code tags - select your code, then press the <> button on the FOrmat menu

Cheers
Topic archived. No new replies allowed.