广工anyview最后数题的答案(Answers to the last question in anyview).docVIP

  • 10
  • 0
  • 约5.25千字
  • 约 16页
  • 2017-08-04 发布于河南
  • 举报

广工anyview最后数题的答案(Answers to the last question in anyview).doc

广工anyview最后数题的答案(Answers to the last question in anyview) /********** [9.023] exercise structure types are defined as follows: Struct date{int year; int month; int day;}; / / define the date structure type Struct student {char name[20]; Struct date birth; / / date of birth }; An array of structures s n is stored in the personal name and date of birth. Write a function, the largest individual for the age of n (that is the name of the minimum date of birth). **********/ Char *oldest (student s[], int n) {int J, k=0; For (j=1; jn-1; j++) {if (s[k].birth.years[j].birth.year) k=j; Else if (s[k].bir

文档评论(0)

1亿VIP精品文档

相关文档