1000以内猜数游戏

1000以内猜数游戏,不限次数,简单但能轻松锻炼二分思维! 

#include 
#include 
#include 
using namespace std;
int main()
{
    srand(unsigned(time(NULL)));
    int sj=rand()%1000+1,ci=-1;
    cout<<"It\'s bigger than 0,and smaller than 1001."<>ci;
        if(ci==sj)
        {
            cout<<"That\'s right!You win!"<sj)
        {
            cout<<"Too big!"<

你可能感兴趣的:(其他,c++,算法)