read textfile into class object

Please help. I wrote my question in my code via comments.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once
#include <iostream>
#include <fstream>
#include <string>
#include<sstream>
using namespace std;
class Classroom{

	//define array or matrix
	string name;
	int capacity;
	int schedule[7][5];
public:
	Classroom();
	 
	void initializeClass(string); //read txt
	//Write necessary functions to read text files into classroom objects

	void setName(); string getName();



};
Topic archived. No new replies allowed.