Advertisement
Guest User

alloctest.cpp

a guest
Aug 28th, 2011
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3.  
  4. int main(int argc, char **argv)
  5. {
  6.         std::ifstream fs(argv[1]);
  7.         #ifdef TYPE_A
  8.         std::string line;
  9.         #endif
  10.         while(true)
  11.         {
  12.                 #ifdef TYPE_B
  13.                 std::string line;
  14.                 #endif
  15.                 if(!std::getline(fs, line)) break;
  16.                 std::cout << line << std::endl;
  17.         }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement