Merge branch 'master' of ssh://gitea.ntut.com.tw:9487/omygod/OOP_Git_Training
This commit is contained in:
@ -17,8 +17,10 @@ bool Guess(int number)
|
||||
target = -1;
|
||||
return true;
|
||||
}
|
||||
else std::cout << "Wrong" << std::endl;
|
||||
else if (number > target) std::cout << "Smaller" << std::endl;
|
||||
else if (number < target) std::cout << "Bigger" << std::endl;
|
||||
return false;
|
||||
|
||||
}
|
||||
int main(array<System::String^>^ args)
|
||||
{
|
||||
@ -31,4 +33,4 @@ int main(array<System::String^>^ args)
|
||||
while (!Guess(guess));
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user