Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<fstream>
- using namespace std;
- int main()
- {
- int Age1,ID1,Age2,ID2,Age3,ID3;
- float Total1,Total2,Total3;
- ofstream Record1("R1.txt");
- ofstream Record2("R2.txt");
- ofstream Record3("R3.txt");
- cout<<"Enter ID:";
- cin>>ID1;
- cout<<"Enter age:";
- cin>>Age1;
- cout<<"Enter Total percentage:";
- cin>>Total1;
- Record1<<ID1<<endl<<Age1<<endl<<Total1;
- cout<<"Enter ID:";
- cin>>ID2;
- cout<<"Enter age:";
- cin>>Age2;
- cout<<"Enter Total percentage:";
- cin>>Total2;
- Record2<<ID2<<endl<<Age2<<endl<<Total2;
- cout<<"Enter ID:";
- cin>>ID3;
- cout<<"Enter age:";
- cin>>Age3;
- cout<<"Enter Total percentage:";
- cin>>Total3;
- Record3<<ID3<<endl<<Age3<<endl<<Total3;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement