2条回答 默认 最新
- qzjhjxj 2021-12-23 10:07关注
修改如下,供参考:
#include <stdio.h> #include <string.h> struct ChoiceQuestion { int number; char stem[128]; char optionA[64]; char optionB[64]; char optionC[64]; char optionD[64]; char answer[8]; int score; }; int main() { struct ChoiceQuestion stu[2] = { {1,"题干1","A","B","C","D","答案是B",10}, {2,"题干2","A","B","C","D","答案是C",10} }; int i; for (i = 0; i < 2; i++) { printf("%d.%s(%d分)\n", stu[i].number, stu[i].stem, stu[i].score); printf("%s %s %s %s\n", stu[i].optionA, stu[i].optionB, stu[i].optionC, stu[i].optionD); } return 0; }
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
悬赏问题
- ¥50 h5唤醒支付宝并跳转至向小荷包转账界面
- ¥15 算法题:数的划分,用记忆化DFS做WA求调
- ¥15 chatglm-6b应用到django项目中,模型加载失败
- ¥15 武汉岩海低应变分析软件,导数据库里不显示波形图
- ¥15 CreateBitmapFromWicBitmap内存释放问题。
- ¥30 win c++ socket
- ¥15 C# datagridview 栏位进度
- ¥15 vue3页面el-table页面数据过多
- ¥100 vue3中融入gRPC-web
- ¥15 kali环境运行volatility分析android内存文件,缺profile