hi, I need your help please
I have got C141 errors several times, followings
error C141: syntax error near 'char' error C141: syntax error near '{' error C141: syntax error near 'void'
in functions getkey() and column#()
How can I fix these errors?
char getkey() { if(c1==0 || c2==0 || c3==0) { if(c1==0) { column1(); while(!c1) { col=0; } } if(c2==0) { column2(); while(!c2){ col=1;} } if(c3==0) { column3(); while(!c3){ col=2;} } } // return num[row][col]; } void column1() { r1=r2=r3=r4=1; r1=0; if(c1==0) row=0; r1=1;r2=0; if(c1==0) row=1; r1=1;r2=1;r3=0; if(c1==0) row=2; r1=1;r2=1;r3=1;r4=0; if(c1==0) row=3; r1=r2=r3=r4=0; } void column2() { r1=r2=r3=r4=1; r1=0; if(c2==0) row=0; r1=1;r2=0; if(c2==0) row=1; r1=1;r2=1;r3=0; if(c2==0) row=2; r1=1;r2=1;r3=1;r4=0; if(c2==0) row=3; r1=r2=r3=r4=0; } void column3() { r1=r2=r3=r4=1; r1=0; if(c3==0){ row=0;} r1=1;r2=0; if(c3==0){ row=1;} r1=1;r2=1;r3=0; if(c3==0){ row=2;} r1=1;r2=1;r3=1;r4=0; if(c3==0){ row=3;} r1=r2=r3=r4=0; }