Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void grade10(const char* path)
- {
- ifstream file(path);
- if ( file.is_open())
- {
- string temp;
- getline( file,temp);
- while (!file.eof())
- {
- string s;
- getline( file,s);
- int n = s.length();
- while (s[n-1] != ',') n--;
- int kt=0;
- if ( s[n-2] == '0') kt =1;
- if ( kt)
- {
- int k =1;
- while ( s[k] != ',') k++;
- while (s[k+1] != ',') {
- cout<< s[k+1];
- k++;
- }
- cout<< " ";
- k++;
- while (s[k+1] != ',') {
- cout<< s[k+1];
- k++;
- }
- cout<< endl;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement