#include <ctime>
#include <cstdlib>
bool winner = false;
winner = true;
srand((unsigned)time(NULL));
comp_choice = rand() % 3;
system ("PAUSE");
return 0;
}
How to transform this idea or this codes to simple codes in IOSTREAM Library