- 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
2 Antworten
+ 2
incomplete and messy, please fix so we can check it.
0
Don't know about the program but pretty sure there's a bug in your mind.