Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class stacja{
- private:
- fstream plik;
- public:
- vector<string> time;
- vector<string> temp;
- int base;
- stacja(string path){
- plik.open(path.c_str(), fstream::in);
- string a, b;
- while(!plik.eof()){
- plik >> a >> b;
- time.push_back(a);
- temp.push_back(b);
- }
- }
- ~stacja(){
- plik.close();
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement