Whats wrong with my c++ codes?undefined symbols?error?-Record and share programming errors

  • 1.There are several syntax errors like missing ” and ; and # 2.secondly variables that are decalred with in main() are being accessed from the area functions which is not permitted. They have to be moved to global area so that main() and other functions can access tem 3. Another important error is that printing of area variable is done before actually calculating them. This makes the output of all area functions to show 0. All these have been modified and you have a working program here #include // include – # missing #include void circle(); void tri(); void rect(); void square(); int a,b,c,area; void main() { //int a,b,c,area; – moved to global area char ch=’y’; while(ch==’y’) { clrscr(); cout”; cin>>b; cout>c; tri(); break; case 3:clrscr(); cout>b; cout>c; rect(); break; case 4:clrscr(); cout>b; square(); break; } coutch; } getch(); } void circle() { /* cout

Originally posted 2013-08-31 06:16:45.