Dvortsov_D1

доделать программу с полутом мяча

Dec 7th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.49 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3. #include <string>
  4. #include <sstream>
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9.  
  10.     string path = "/home/user/text.txt";
  11.     ifstream infile(path.c_str());
  12.     string line;
  13.     getline (infile,line);
  14.     istringstream iny (line.c_str());
  15.     float x, y, vx, vy, dt;
  16.     iny >> x >> y >> vx >> vy >> dt;
  17.    
  18.  
  19.  
  20.     /*ofstream outfile;
  21.     outfile.open (path.c_str());
  22.     outfile << "hello world " << endl;
  23.     outfile.close();*/
  24.     return 0;
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment