WebGoC的程序是
cout<
pen.picL(30,"tu5.png");
pen.pic(30).text("答题开始",15,60);wait(3);pen.ctime(5);
pen.soundL(1,"rub.mp3");
pen.soundL(2,"music1.mp3");
string a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,lx,llx,x,xl,xll;
pen.rr(500,480,15).text("35+8",0,80);
pen.ctime(5);
cin>>a;
if(a=="43")
pen.sound(2).ctime(50);
else
pen.sound(1).ctime(15);
wait(5);pen.rr(500,480,15).text("24-x",0,80);
pen.ctime(5);
cin>>b;
if(b=="15")
pen.sound(2).ctime(50);
else
pen.sound(1).ctime(15);
wait(5);pen.rr(500,480,15).text("x^2-a",0,80);
pen.ctime(5);
cin>>c;
if(c=="250")
pen.sound(2).ctime(50);
else
pen.sound(1).ctime(15);
wait(5);pen.rr(500,480,15).text("78-25",0,80);
pen.ctime(5);
cin>>d;
if(d=="53")
pen.sound(2).ctime(50);
else
pen.sound(1).ctime(15);
wait(5);pen.rr(500,480,15).text("a的个数为",0,80);
pen.ctime(5);
cin>>e;
if(e=="8")
pen.sound(2).ctime(50);
else
pen.sound(1).ctime(15);
wait(5);pen.rr(500,480,15).text("cosX-a的导数为",0,45);
pen.ctime(5);
cin>>f;
if(f=="3/x-n")
pen.sound(2).ctime(50);
else
pen.sound(1).ctime(15);
wait(5);pen.rr(500,480,15).text("lim(x->0)tanX/n",0,42);
pen.ctime(5);
cin>>g;
if(g=="3")
pen.sound(2).ctime(50);
else
pen.sound(1).ctime(15);
wait(5);pen.rr(500,480,15).text("哪个大",0,80);
pen.ctime(5);
cin>>h;
if(h=="比1大")
pen.sound(2).ctime(50);
else
pen.sound(1).ctime(15);
wait(5);pen.rr(500,480,15).text("56-v+a",0,80);
pen.ctime(5);
cin>>i;
if(i=="5x")
pen.sound(2).ctime(50);
else
pen.sound(1).ctime(15);
wait(5);pen.rr(500,480,15).text("哪个小",0,80);
pen.ctime(5);
cin>>j;
if(j=="比1小")
pen.sound(2).ctime(50);
else
pen.sound(1).ctime(15);
wait(5);pen.rr(500,480,15).text("面积有多大",0,80);
pen.ctime(5);
cin>>k;
if(k=="242平方厘米")
pen.sound(2).ctime(50);
else
pen.sound(1).ctime(15);
wait(5);pen.rr(500,480,15).text("50+40-na",0,80);
pen.ctime(5);
cin>>l;
if(l=="90")
pen.sound(2).ctime(50);
else
pen.sound(1).ctime(15);
wait(5);pen.rr(500,480,15).text("sin(90)",0,80);
pen.ctime(5);
cin>>m;
if(m=="1")
pen.sound(2).ctime(50);
else
pen.sound(1).ctime(15);
wait(5);pen.rr(500,480,15).text("2-n/2+x dz",0,66);
pen.ctime(5);
cin>>n;
if(n=="7+√2")
pen.sound(2).ctime(50);
else
pen.sound(1).ctime(15);
wait(5);pen.rr(500,480,15).text("约分:2-xy+2/4a-ay^2+y",0,31);
pen.ctime(5);
cin>>o;
if(o=="1+a^2/na")
pen.sound(2).ctime(50);
else
pen.sound(1).ctime(15);
wait(5);pen.rr(500,480,15).text("lim(y=0)x-y+dz^2/n-1dc^2a x-y",0,18);
pen.ctime(5);
cin>>lx;
if(lx=="32-x+2")
pen.sound(2).ctime(50);
else
pen.sound(1).ctime(15);
wait(5);pen.rr(500,480,15).text("2x/5-dz",0,80);
pen.ctime(5);
cin>>llx;
if(llx=="6+x")
pen.sound(2).ctime(50);
else
pen.sound(1).ctime(15);
wait(5);pen.rr(500,480,15).text("300-1/n(x+1)",0,75);
pen.ctime(5);
cin>>x;
if(x=="266")
pen.sound(2).ctime(50);
else
pen.sound(1).ctime(15);
wait(5);pen.rr(500,480,15).text("x+y=3,x=?",0,78);
pen.ctime(5);
cin>>xl;
if(xl=="2")
pen.sound(2).ctime(50);
else
pen.sound(1).ctime(15);
wait(5);pen.rr(500,480,15).text("ln-x/ab^2n-2",0,62);
pen.ctime(5);
cin>>xll;
if(xll=="5/n+1")
pen.sound(2).ctime(50);
else
pen.sound(1).ctime(15);
pen.pic(30).moveTo(57,8).text("答题结束",15,60);
这个程序是回答问题,共20道题。
我的程序真好啊!谢谢大家!