大きいか小さいか

972 ワード

/*
*Corpyright (c)2013,         
*All right reseved.
*  :z   
*    :2013 11 8 
*   :v1.0
*    :
*    :   ,   
*    :
*    :
*    :
*/

#include <iostream>

#include <ctime>

#include<cstdlib>

using namespace std;

int main(void)
{
    int i,ran_num,a;
    srand(time(0));//time(0)      。
    for(i=0;1000;i++)
    {
        ran_num=rand()%6;//rand()    6         0~5.
        cin>>a;
        if(a>ran_num)
        {
            cout<<"  "<<endl;
        }
        else if(a==ran_num)
        {
            cout<<"  ,  "<<endl;
        }
        else
        {
            cout<<"  "<<endl;
        }

    }
    return 0;
}