首页 新闻 论坛 群组 Blog 文档 下载 读书 Tag 网摘 搜索 .NET Java 游戏 视频 人才 外包 数据库 第二书店 程序员

dychenyi/ 


共539个网摘 [ 1  2  3  4  5  6  7  8  9 ... 18 ]  上一页 | 下一页  |  访问dychenyi的个人空间

单链表 逆置

dychenyi收录,时间:2008-4-21 11:17:56 | 相关网摘我也收藏

typedefine struct LNode{
Elemtype data;
struct LNode *next;
}LNode,*LinkList;
void Revers(LinkList Head){
LNode *p,*q;
p=head-> next;head-> next=NULL;
if(p) return ;
q=p-> next;
while(p-> next){
p-> next=head-> next;
head-> next=p;
p=q;
q=p-> next;
}
}


mystruct s;//no problem

dychenyi收录,时间:2008-4-16 8:26:21 | 相关网摘我也收藏

c++语言中
struct mystruct
{
int a;
char c;
}

mystruct s;//no problem

但是c语言中
必须写成
struct mystruct s;



共539个网摘 [ 1  2  3  4  5  6  7  8  9 ... 18 ]  上一页 | 下一页

dychenyi/相关标签



网站简介广告服务网站地图帮助联系方式诚聘英才English 问题报告
北京百联美达美数码科技有限公司 版权所有 京 ICP 证 020026 号
Copyright © 2000-2006, CSDN.NET, All Rights Reserved