Hello to all! I am a begginer to C++ and writing a class . Actually my program runs perfectly but there is logical error. My compiler is devC++. the output of my program should be as follows:
Enter your name: john
Enter your rollno: 45
Enter your semester:4
Enter your name: Michael
Enter you roll no: 78
Enter your semester:3
Name of studend1 is John
Rollno of student1 is 45
Semester of student1 is 4
Name of student2 is Michael
Rollno of student2 is 78
Semester of student2 is 3
Description of error : First six lines appears perfecly on console window but 2nd six lines do not display.
I am attaching a notpad file on which my code is written. Please put my code on your compiler and debug it and also tell me that what mistake i made.