程序工程源码.docxVIP

  • 2
  • 0
  • 约1.25千字
  • 约 2页
  • 2022-07-25 发布于河南
  • 举报
#include iostream #include iomanip #include string using namespace std; enum nationality { 中国, 加拿大,保加利亚 ,美国,意大利,德国 }; struct athletes { char name[20]; char nationality[20]; int age; long num; double score; }; athletes a[8] = { { 王濛,中国,22,1,44.345 }, { 布彻尔,加拿大,23,2,44.759 }, { 拉达诺娃,保加利亚,29,3,44.374 }, { 曲春雨,中国,19,4,43.976 }, { 凯西-特纳,美国,29,5,45.794 }, { 方塔娜,意大利,20,6,46.756 }, { 范科尔霍夫,德国,21,7,45.945 }, { 李坚柔,中国,28,8,45.263 } }; void main() { cout 观众朋友大家好,您现在收看的是女子500米短道速滑决赛现场。 endl; for (int i = 0; i 8; i++) { if (a[i].age = 21) cout 第 a[i].num 个出场的是来自 a[i].nation

文档评论(0)

1亿VIP精品文档

相关文档