/*
* File: main.cpp
* Author: chujiangke
*
* Created on 2013年4月8日, 下午1:11
*/
#include
#include
#include
#include
#include
using namespace std;
/*
*
*/
int main(int argc, char** argv) {
int play1=0;
int play2=0;
while(play1<100||play2<100)
{
srand(time(NULL));
int temp1=rand()%6+1;
int temp2=rand()%6+1;
play1+=temp1;
play2+=temp2;
cout<<"now play1 is in : "< cout<<"now play2 is in : "< } if(play1>=100) cout<<"the winer is: play1."< else cout<<"the winer is: play2."< return 0; }
15分。。。。。。