236.cpp(41): this line contains a '{' which has not yet been matched
THE CODING IS:
#include<iostream>
#include<string>
#include<conio.h>
#include<IOMANIP>
#include<fstream>
//#include<cctype> //for toupper function
using namespace std;
class TESTstudent
{
string name[3];
string sir_name[3];
int roll_no[3];
int count;
// FOR LIBRARY
string book1[3];
string book2[3];
int dues[3];
int num_book[3];
int count_lib;
public:
void TESTset_count()
{count=0; count_lib=0;}
//void TESTenroll();
//void TESTsearch_record();
//void TESTedit_record();//
//void TESTdisplay2();
void TESTlibrary();
//void TESTlibrary_status();
}; // CLASS ENDS
//LIBRARY FUNCTION//
void TESTstudent::TESTlibrary()
[B]
{
[/B]
[U][B]GIVES THE ERROR ON THIS '{'.HOW SHOULD I RESOLVE THIS?[/B][/U]
if(count<1)
{cout<<"LIBRARY CAN NOT BE ACCESSED AS NO RECORD EXIST"<<endl; return;}
int temp, check=0;
cout<<"ENTER THE ROLL NUMBER.THE ROLL NUMBER SHOULD NOT BE GREATER THAN 100 OR LESSER THAN ONE.."<<endl;
cin>>temp;
{
if( temp<1&&temp>100 )
cout<<"ERROR! you have not entered an integet.Please enter an integer! "<< endl;
}
for(int i=0;i<count;i++)
{if(temp==roll_no[i])
{if(dues[i]==1)
{cout<<"BOOKS ARE ALREADY ISSUED ON THIS ROLL NUMBER, SORRY"<<endl; return;}
}
}
for(int i=0;i<count;i++)
{if(temp==roll_no[i])
{ check=1;
{H2:
cout<<"ENTER THE NUMBER OF BOOKS THAT YOU WANT TO ISSUE(1/2)?"<<endl;
cin>>num_book[i];
switch(num_book[i])
{
case 1:
{cout<<"ENTER THE NAME OF BOOK"<<endl;
getline(cin,book1[i],'$');
{
//{ if(!((book1[i]>='A'&&book1[i]<='Z')||(book1[i]>='a'&&book1[i]<='z') ) )
// cout<<"Please enter alphabets!"<<endl; }}
dues[i]=1;
++count_lib;
goto F2;
break;
}
case 2:
{cout<<"ENTER THE NAME OF BOOK 1"<<endl;
getline(cin,book1[i],'$');
cout<<"ENTER THE NAME OF BOOK 2"<<endl;
getline(cin,book2[i],'$');
dues[i]=1;
++count_lib;
goto F2;
break;
}
default:
{cout<<"YOU CAN NOT ISSUE MORE THAN 2 BOOKS"<<endl; goto H2; break;}
}
}
}
}
F2:
if(check==0)
{cout<<"INVALID ROLL NUMBER"<<endl;};
}
///////////////////////
int main()
{
TESTstudent Tst;
Tst.TESTset_count();
//Tst.TESTenroll();
//Tst.TESTsearch_record();
Tst.TESTlibrary();
system("pause");
return 0;
}// main ends here