當前位置:成語大全網 - 新華字典 - C++,定義壹個結構體數組,找到其中年齡最大的人並輸出?

C++,定義壹個結構體數組,找到其中年齡最大的人並輸出?

部分程序

#include <stdio.h>

#define N 3 ?//便於運行測試,只給定義3,也可以其他值

struct man

{ char name[20];

int age;

} m_p[N];

int Max_age(struct man m_p[],int k);

有改動