- 1

Can anyone find the error in program

#include<iostream.h> #include<stdlib.h> #include<conio.h> #include #include #include #include #include #include class lib { public: char name[20]; int clas,rollno; void get() {cout<<"*******enter the details of the student:"<>clas; cout<<"enter the rollno:"<>rollno; } void show() { cout<<"********DETAILS ADDED ARE***********:"<>x; switch(x) { case 1: { char ch='y'; lib s; fstream t; t.open("navi_arora.txt",ios::binary|ios::out|ios::app|ios::in); while(ch=='y'||ch=='Y') { s.get(); t.write((char*)&s,sizeof(li

8th Jan 2017, 5:44 AM
Pranav Jha
Pranav Jha - avatar
2 odpowiedzi
+ 2
incomplete and messy, please fix so we can check it.
8th Jan 2017, 5:46 AM
Nahuel
Nahuel - avatar
0
Don't know about the program but pretty sure there's a bug in your mind.
8th Jan 2017, 2:18 PM
Rishabh Agrawal
Rishabh Agrawal - avatar