#include <stdlib.h>
main()
{
int a,j,x;
a = new Array(192,168,255);
j = random(3);
x = a[j];
switch(x)
{
case 192:f1();break;
case 168:f2();break;
case 255:f3();break;
}
}
int f1()
{
printf("Yes!!\n");
}
int f2()
{
printf("No!!\n");
}
int f3()
{
printf("I like the job!\n");
}
运行有错那位高手帮改一下。先谢过了!