Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <limits>
- using namespace std;
- int main() {
- ifstream ifs("a.txt");
- int a, b, c;
- ifs >> c;
- cout << c << endl;
- ifs.ignore(numeric_limits<streamsize>::max(), '\n');
- char d;
- while (ifs >> a >> d >> b)
- cout << a << ' ' << b << endl;
- ifs.close();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement