-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathalready_exits.cpp
39 lines (36 loc) · 987 Bytes
/
already_exits.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#include <iostream>
#include <fstream>
#include<iomanip>
using namespace std;
int main()
{
char name[20];
int roll, oop, ecm, maths, micro, chem;
ifstream reading("reading_writing.txt");
cout << "READING STARTED!";
reading >> name >> roll;
reading >> oop >> ecm >> maths >> micro >> chem;
// cout << endl
// << "*****************************************";
// cout << endl
// << " MARKSHEET";
// cout << "The details are as follows:- ";
// cout << endl
// << "OOP" << oop;
// cout << endl
// << "ecm" << oop;
// cout << endl
// << "maths" << ecm;
// cout << endl
// << "micro" << maths;
// cout << endl
// << "chem" << micro;
// cout << endl
// << "OOP" << chem;
// cout << endl
// << "OOP" << roll;
// cout << endl
// << "Name:- " << setw(12) << name<< setw(8)<< name;
reading.close();
return 0;
}