Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <string.h>
- using namespace std;
- int main()
- {
- ifstream read_file;
- read_file.open("D:\\text.txt");
- char output[100];
- while (!read_file.eof())
- {
- read_file >> output;
- if(strlen(output)==2 && output[0]>='0' && output[0]<='9' && output[1]>='0' && output[1]<='9')
- cout<<output<<"\n";
- }
- read_file.close();
- return 0;
- }
Add Comment
Please, Sign In to add comment