#include "iostream.h"
#include "graphics.h"
int main()
{
// Variable declaration
int cir, rec;
// Greet
cout << "Welome to the District Assessment!" << endl << endl;
cout << "How many circles do you want to display? [1-5]";
cin >> cir;
if (cir <= 0)
cout << "Error! You must enter 1 through 5. Run again." << endl;
elseif (cir <= 5)
{
cout << "How many rectangles do you want to display? [1-5]";
cin >> rec;
if (rec <= 0)
cout << "Error! You must enter 1 through 5. Run again." << endl;
elseif (rec <= 5)
{
{
initGraph();
return 0;
}
void renderScene ()
{
for (int cir; cir <= 5; ++counter)
{
circle(50, 50, 25);
}
}
}
else
cout << "Error! You must enter 1 through 5. Run again." << endl;
}
else
cout << "Error! You must enter 1 through 5. Run again." << endl;
return 0;
}
The program is not done but I want to check on it from time to time.
Error-
From Line 25 (error C2601: 'renderScene' : local function definitions are illegal)