From d9fc3ea2e53301be246d3b44b461a815b44f5520 Mon Sep 17 00:00:00 2001 From: Pin Lin Date: Fri, 9 Mar 2018 00:35:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=A0=E5=AE=87=E7=94=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Git_Practice/Git_Practice.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Git_Practice/Git_Practice.cpp b/Git_Practice/Git_Practice.cpp index 8bfde90..5c9324f 100755 --- a/Git_Practice/Git_Practice.cpp +++ b/Git_Practice/Git_Practice.cpp @@ -12,8 +12,12 @@ bool Guess(int number) target = r.Next() % 100 + 1; } - if (number == target)return true; - + if (number == target) { + std::cout << "Correct !!"; + target = -1; + return true; + } + else std::cout << "Wrong" << std::endl; return false; } int main(array^ args)