aboutsummaryrefslogtreecommitdiff
path: root/13a.txt
blob: ec94769a5567e83fc35c885cbf3bfc0962dfafea (plain) (blame)
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
13a

5.
	int records = 0;
	ifstream file = ("file.txt");

	string lname[], id[], age[];

	if (file.is_open())
	{
		file >> lname[records] >> id[records] >> age[records];
		while (!file.eof())
		{
			records++;
			file >> lname[records] >> id[records] >> age[records];
		}
		file.close();
	}
	else
	{
		//error handling
	}

	printData(lname, id, age, records);

6.
	a. False
	b. True
	c. True
	d. True
	e. True