what does name.compare do actually?
if(name.compare("Michael") == 0){
//attend1
showAttend(attend1);
}
else if(name.compare("Paul") == 0){
//attend2
showAttend(attend2);
}
else if(name.compare("Linda") == 0){
//attend3
showAttend(attend3);
}
else if(name.compare("Jacklyn") == 0){
//attend4
showAttend(attend4);
}
else if(name.compare("Joel") == 0){
//attend5
showAttend(attend5)
Last edited on