How do I test for a blank student name
ie if ((pa+i)->fullname==blank line)
break;
Code:int getinfo(student pa[], int n) { int i; for (i=0;i<n;i++) { cout << "Enter the name of student "<< i+1 <<":"; cin.getline((pa+i)->fullname,SLEN); if ((pa+i)->fullname=='\0') break; cout << "Enter student "<<i+1<< " hobby:"; cin.getline((pa+i)->hobby,SLEN); cout << "Enter student "<< i+1<< " ooplevel:"; cin >>(pa+i)->ooplevel; cin.get(); } return i; }