#include<iostream>
#include<iomanip>
#include<ctime>
#include<cstdlib>
using namespace std;
void cx(int a,int c,int d,int b,int x,int a1,int c1,int d1,int f,bool y)
{
a=rand()%a1;c=rand()%c1;d=rand()%d1;x=0;f=0;y=true;
cout<<"Hello!Please play.^v^"<<endl;
cout<<a-c<<"~"<<a+d<<endl;
while(y)
{
a1+=10;
c1+=10;
d1+=10;
cin>>b;
x++;
if(b==a){cout<<"Yes!"<<endl<<"You win";f++;return;}
if(x==10){cout<<"You lost!"<<endl;f--;return;}
if(b<a)cout<<"small"<<endl;
if(b>a)cout<<"big"<<endl;
}
}
int main()
{
srand(time(NULL));
int a,b,c,d,x=0,a1=1000,d1=100,c1=100,f=0;
bool y=true;
for(int i=0;i<10;i++)
{
cx();
cout<<f;
}
}
就是上面的,他还显示error: too few arguments to function 'void cx(int, int, int, int, int, int, int, int, int, bool)'
cx();是为什么呀
慕勒3428872
相关分类