编程实现;
Action()
{
int randno;
randno=rand()%100+1;
if(randno<=40)
logi ("cloud");//使用形参传递用户名
else
unlogin();
return 0;
}
login(char *x)
{
Lr_output_message(x);//输出形参传递值
viewforum();
returm 0;
}
unlogin()
{
viewforum();
retunrn 0;
}
viewform()
{
selectforum();
return 0;
}
selectforum(){
int randno;
randno=rand(0%100+1;
if(randno<=30)
viewforum();
else
{
randno=rand()%100+1;
if (randno<=10) {
quit();
}
时间: 2024-10-09 22:59:45