Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- int main(int argc, char **argv)
- {
- std::ifstream fs(argv[1]);
- #ifdef TYPE_A
- std::string line;
- #endif
- while(true)
- {
- #ifdef TYPE_B
- std::string line;
- #endif
- if(!std::getline(fs, line)) break;
- std::cout << line << std::endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement