error: expected '}' at end of input

So my program is to design a calculator.. Im doing it little little because it's alot... When running i get this error saying error: expected '}' at end of input


#include <stdio.h>
#include <stdlib.h>
#include<conio.h>
#include<iostream>
#include<cmath>
int main()
{

using namespace std;

#define PI 3.14159265359

int main()

{

int loopcount=0;
int Amountofnumbers;
int Total = 0;
int number;
string x;;
string y;



do
system(cls);


;
cout <<"\n Welcome to Geek Exclusive Scientific Calculator \n \n ";
cout << " coded by Jenell Joanne James";
getch()
system ("COLOR 0b")
cout " What operation would you like to use today? :" <<endl<< "\n";


cout <<"1= Addition \n2 = Subtraction\n3 = Division\n4 = Multiplication/n5 = SOHCAHTOA Trigonometric Function \n6 =Square Root\n7 =Log\n8 = Power\n9 Base\n = Hyperbole Function" <<endl;

cout <<" Select the operation you want to choose by entering the operation number, please ";
cin >> x;
cout << "Thanks"
return 0;
}
Please edit your code and use code tags - http://www.cplusplus.com/articles/jEywvCM9/

1
2
3
4
5
do
system(cls); // also cls is undefined, think you meant "cls"


;


What are you trying to do here? That's not how a do-while loop looks like.

cout << "Thanks" You forgot a semicolon at the end.

string x;; // remove one semicolon
Last edited on
There are two int main() functions. That can't be done. Other than that, there are semi colons missing, along with too many in some places. Fix these problems and see where you're at.
Topic archived. No new replies allowed.