一个简单的C语言答题系统-创新互联

1,这是一个随机抽取20道题目的填空题答题程序(题目会重复)

创新互联主要业务有网站营销策划、网站设计、网站制作、微信公众号开发、小程序制作H5高端网站建设、程序开发等业务。一次合作终身朋友,是我们奉行的宗旨;我们不仅仅把客户当客户,还把客户视为我们的合作伙伴,在开展业务的过程中,公司还积累了丰富的行业经验、成都全网营销推广资源和合作伙伴关系资源,并逐渐建立起规范的客户服务和保障体系。 

2,题目需要自己设计(下面演示自己设计的题目)

3,答案必须为自己设计的字符串类型

4,下面是我写的代码,可自行参考,如有错误和需要改进的地方可以指出

#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("答题开始,请回答以下问题\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,答案允许答案前面和后面空格,但是不能在输出答案每个字符中间空格,否则系统会误判多个答案而产生错误 

6,最后会弹出总分为多少,感谢参与

你是否还在寻找稳定的海外服务器提供商?创新互联www.cdcxhl.cn海外机房具备T级流量清洗系统配攻击溯源,准确流量调度确保服务器高可用性,企业级服务器适合批量采购,新人活动首月15元起,快前往官网查看详情吧


新闻标题:一个简单的C语言答题系统-创新互联
分享地址:http://myzitong.com/article/dpciss.html