Advertisement
Guest User

Untitled

a guest
Feb 20th, 2018
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.42 KB | None | 0 0
  1. class stacja{
  2.     private:
  3.         fstream plik;
  4.     public:
  5.         vector<string> time;
  6.         vector<string> temp;
  7.         int base;
  8.  
  9.     stacja(string path){
  10.         plik.open(path.c_str(), fstream::in);
  11.         string a, b;
  12.         while(!plik.eof()){
  13.             plik >> a >> b;
  14.             time.push_back(a);
  15.             temp.push_back(b);
  16.         }
  17.     }
  18.     ~stacja(){
  19.         plik.close();
  20.     }
  21. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement