1,這是一個(gè)隨機(jī)抽取20道題目的填空題答題程序(題目會(huì)重復(fù))
創(chuàng)新互聯(lián)主要業(yè)務(wù)有網(wǎng)站營(yíng)銷(xiāo)策劃、網(wǎng)站設(shè)計(jì)、網(wǎng)站制作、微信公眾號(hào)開(kāi)發(fā)、小程序制作、H5高端網(wǎng)站建設(shè)、程序開(kāi)發(fā)等業(yè)務(wù)。一次合作終身朋友,是我們奉行的宗旨;我們不僅僅把客戶當(dāng)客戶,還把客戶視為我們的合作伙伴,在開(kāi)展業(yè)務(wù)的過(guò)程中,公司還積累了豐富的行業(yè)經(jīng)驗(yàn)、成都全網(wǎng)營(yíng)銷(xiāo)推廣資源和合作伙伴關(guān)系資源,并逐漸建立起規(guī)范的客戶服務(wù)和保障體系。2,題目需要自己設(shè)計(jì)(下面演示自己設(shè)計(jì)的題目)
3,答案必須為自己設(shè)計(jì)的字符串類(lèi)型
4,下面是我寫(xiě)的代碼,可自行參考,如有錯(cuò)誤和需要改進(jìn)的地方可以指出
#include#include#include#includeint main()
{
int i,j,n,a[1000];
char h[1000];
int fenshu=0;
char c[1000][1000]={"1+1=","124+122=","18+37=","31-11=","50+60=","111+111=","857-411=","147+111=","158+147=","125-41=","128-57=","250+250=","413+125=","520+1314=","357+581=","777+777=","321+857=","555+777=","1+13=","21+32="};
char d[1000][1000]={"2","246","55","20","110","222","446","258","305","84","71","500","538","1834","938","1554","1178","1332","14","53"};
srand(time(0));
printf("答題開(kāi)始,請(qǐng)回答以下問(wèn)題\n");
for(i=0;i<20;i++)
{
a[i]=rand()%20+1;
n=a[i];
printf("%d,%s",i+1,c[n-1]);
scanf("%s",h);
int z=0;
for(j=0;j
5,答案允許答案前面和后面空格,但是不能在輸出答案每個(gè)字符中間空格,否則系統(tǒng)會(huì)誤判多個(gè)答案而產(chǎn)生錯(cuò)誤?
6,最后會(huì)彈出總分為多少,感謝參與
你是否還在尋找穩(wěn)定的海外服務(wù)器提供商?創(chuàng)新互聯(lián)www.cdcxhl.cn海外機(jī)房具備T級(jí)流量清洗系統(tǒng)配攻擊溯源,準(zhǔn)確流量調(diào)度確保服務(wù)器高可用性,企業(yè)級(jí)服務(wù)器適合批量采購(gòu),新人活動(dòng)首月15元起,快前往官網(wǎng)查看詳情吧