#include "stdafx.h" #include #include using namespace System; bool Guess(int number) { static int target = -1; if (target == -1) { Random r; target = r.Next() % 100 + 1; } if (number == target)return true; return false; } int main(array^ args) { int guess; do { std::cin >> guess; } while (!Guess(guess)); return 0; }