plese help me

good morning every body , I have a a homework for tomorrow and I didn't done from it , I have problem with this code "
fatal error C1075: end of file found before the left brace '{' at 'c:\users\toshiba\documents\visual studio 2010\projects\sheet 6\sheet 6\sheet 6.cpp(24)' was matched
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
"

I appreciate your help .
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
  #include<iostream>
using namespace std;

int main()
{

enum opreaitor {aaition,subtraction,maltiplication,divistion,power};
int i;
int j;
int result;
int chose;

cout<<"-------------------------------------\n";

cout<<"a)addition\n";
cout<<"b)subtraction\n";
cout<<"c)maltiplication\n";
cout<<"d)divistion\n";
cout<<"e)power\n";
cout<<"f)exist\n";

cout<<"--------------------------------------\n";

do{

cout<<"plese choses an opreation= \n";
cout<<"Enter tow numbers= ";

switch (chose){

case 1:cout<<"the result is= ";
result=i+j;
	break;
case 2:cout<<"the result is= ";
result=i-j;
	break;
case 3:cout<<"the result is= ";
result=i*j;
	break;
case 4:cout<<"the result is= ";
result=i/j;
	break;
case 5:cout<<"the result is= ";
result=i^j;
	break;
default:cout<<"end";
}

}

system("pause");
return 0;

}
You have a do without its corresponding while.
1
2
3
4
5
do 
{
    //Something 
    
}while(somecondition); 


The user does not get to put input in at any point. Presumably they should be able to put in a value for chose and for i and j?

I'd also whip your file through a spell checker in text editor.
yah , I understand that .
thank you so much for your help .

Topic archived. No new replies allowed.