| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 486 人关注过本帖
标题:希望高手们帮我解决一个结构体赋值的问题,谢谢
只看楼主 加入收藏
devfhpgah
Rank: 1
来 自:江西
等 级:新手上路
帖 子:204
专家分:0
注 册:2007-8-16
收藏
 问题点数:0 回复次数:0 
希望高手们帮我解决一个结构体赋值的问题,谢谢
定义怎样赋值才能使每个aerobus[0],aerobus[1]....aerobus[11]才能得到这个编号:"A101","A102","A103", "B101","B102","B103","C101","C102","C103", "D101","D102","D103"}
struct aviation
{
   char number[10];
   char sign[10];
   char surname[10];
   char firstname[10];
};
struct flight
{
    struct aviation aerobus[MAX];
}plane[4]={{"A101","A102","A103", "B101","B102","B103","C101","C102","C103", "D101","D102","D103"},
           {"A101","A102","A103", "B101","B102","B103","C101","C102","C103", "D101","D102","D103"},
           {"A101","A102","A103", "B101","B102","B103","C101","C102","C103", "D101","D102","D103"},
           {"A101","A102","A103", "B101","B102","B103","C101","C102","C103", "D101","D102","D103"}
          };
搜索更多相关主题的帖子: 赋值 结构体 
2008-03-21 20:00
快速回复:希望高手们帮我解决一个结构体赋值的问题,谢谢
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.035250 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved