Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1. istream *inputs;
  2. ifstream inputs2;
  3.  
  4. inputs = &inputs2;
  5. inputs2.open("input2.txt"); //ifstream inputs = cin;
  6.           if (!inputs2.good())
  7.           {
  8.               isLocal = false;
  9.               cerr << cmdlineStringArgs[0] << " Usando cin como test en CG"<<endl;
  10.               inputs = &cin;
  11.           }
  12.  
  13. gamestate.ReadConfig(*inputs);
  14. while(1){
  15.         gamestate.ReadTurn(*inputs);
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement