写一个关于输入数据的小程序 输入n组日期数据(n不确定),一个年月日为一组,以0作为结束标志,输入形式如下2000 1 12004 7 182009 10 290
你这个结构体数组长度只有1000啊万一输入的数据超过1000怎么办?
这种情况的话,有效的方法呢,是用 动态内存分配+链表 来解决,不过那样会显得比较复杂,我比较偷懒啊,这个地方不想那么麻烦
写全一点吧 大哥
你的也是一样啊 结构体数组长度有限啊 我题目中的n是不确定的