Advertisement
TwITe

Untitled

Oct 1st, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.46 KB | None | 0 0
  1. vector <index> reading_positions;
  2.  
  3. struct index {
  4.     vector <string> file_names;
  5.     vector <int> start_reading_positions;
  6.     vector <int> end_reading_positions;
  7. };
  8.  
  9. void save_read_position(int id, int start_position, int end_position) {
  10.     index current_id;
  11.     current_id.file_names.push_back(data_filename);
  12.     current_id.start_reading_positions.push_back(start_position);
  13.     current_id.end_reading_positions.push_back(end_position);
  14.     reading_positions[id] = current_id;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement