交叉编译器的使用

交叉编译器的使用

ID:40775528

大小:401.50 KB

页数:20页

时间:2019-08-07

交叉编译器的使用_第1页
交叉编译器的使用_第2页
交叉编译器的使用_第3页
交叉编译器的使用_第4页
交叉编译器的使用_第5页
资源描述:

《交叉编译器的使用》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、头文件Stud_mgr_system.h内容如下:#ifndefSTUD_MGR_SYSTEM_H#defineSTUD_MGR_SYSTEM_H#include#include#include#includestructstud_mgr_sys{intnum;charname[8];charphone[12];charaddr[12];structstud_mgr_sys*front;structstud_mgr_sys*back;};typedefstructstud_mgr_sysstudent;typed

2、efstudent*DoubleLink;voidprintlist(DoubleLinkL);DoubleLinkaddnode(DoubleLinkL);DoubleLinkdeletenode(DoubleLinkL);DoubleLinkfindinfo(DoubleLinkL,intnum);DoubleLinkmodifyinfo(DoubleLinkL);DoubleLinkcreatdoublelink();voidmenu();voidsecrecy();DoubleLinkread_file(DoubleLinkL);voidsave_file(DoubleLinkL)

3、;#endif源文件opt_sys_api.c内容如下:#include"stud_mgr_system.h"voidprint_err(char*p){perror("p");exit(1);}voidprintlist(DoubleLinkL){DoubleLinktmp;tmp=L;printf("******************************************");while(tmp!=NULL){printf("tThestudentnumber:%d",tmp->num);printf("tThestudentname:%s",tmp->

4、name);printf("tThestudentphone:%s",tmp->phone);printf("tThestudentaddr:%s",tmp->addr);printf("");tmp=tmp->front;}printf("******************************************");getchar();}DoubleLinkcreatdoublelink(){DoubleLinkhead;DoubleLinknew_node,before;intcount,i;head=(DoubleLink)malloc(sizeo

5、f(student));if(!head)print_err("Failtomallochead");head->front=NULL;before=head->front;printf("Inputnumberyouwanttocreate==>");scanf("%d",&count);for(i=1;i<=count;i++){new_node=(DoubleLink)malloc(sizeof(student));if(!new_node)print_err("Failtomallocnew_node");printf("%d,TheNumber==>",i);scanf("%d"

6、,&new_node->num);printf("%d,TheName==>",i);scanf("%s",new_node->name);printf("%d,ThePhone==>",i);scanf("%s",new_node->phone);printf("%d,TheAddr==>",i);scanf("%s",new_node->addr);printf("");new_node->front=NULL;if(head->front==NULL){head->front=new_node;before=head->front;before->back=head;}else{

7、before->front=new_node;new_node->back=before;before=new_node;}}printf("Successtocreate");getchar();system("clear");returnhead->front;}DoubleLinkaddnode(DoubleLinkL){DoubleLinkaddnew,end;end=L;addnew=(DoubleLi

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。