WAP to get roll numbers and marks of the student of a class (get from the user) and store these details into a file called Marks.dat
/*WAP to get roll numbers and marks of the student of a class (get from the user) and store these details into a file called Marks.dat*/ #include<iostream.h> #include<fstream.h> int main() { ofstream filout; filout.open("marks.dat",ios::out); char ans = 'y'; int rollno; float marks; while(ans =='y'||ans =='Y') { cout<<"\nEnter Roll no.: "; cin>>rollno; cout<<"\nEnter Marks : "; cin>>marks; ...
Comments
Post a Comment