Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. std::map<double,double> gTrack;
  2. std::fstream track;
  3. track.open("groundtrack.txt",std::ios::in);
  4. if(track.is_open())
  5. {
  6. std::string line;
  7. double tlat, tlon;
  8. while(std::getline(track,line))
  9. {
  10. sscanf(line.c_str(),"%lf%lf",&tlon,&tlat);
  11. gTrack.insert(std::pair<double,double>(tlon,tlat));
  12. }
  13. }
  14. track.close();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement