文章标题
来源:互联网 发布:js中校验身份证合法性 编辑:程序博客网 时间:2024/06/05 14:44
#include <stdio.h>#include <string.h>struct Student{ int id; char name[16]; Student* next;};Student ss[4]={ { 1, "xxs",0 }, { 2, "xxx",0 }, { 3, "xxy",0 }, { 4, "xxz",0 }};int main(){ //链表构造 ss[0].next = &ss[1]; ss[1].next = &ss[2]; ss[2].next = &ss[3]; ss[3].next = 0; //链表遍历 Student* p = &ss[0]; while (p) { printf("ID:%d, name:%s\n", p->id, p->name); p = p->next;//下一个对象 }; return 0;}
阅读全文
0 0
- 文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题 文章标题 文章标题 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- oracle中exists和in的区别和效率比较
- Git和SVN的区别
- .NET线程同步之Interlocked构造
- 获取客户端IP地址
- jzoj. 3522. 【NOIP2013模拟11.7B组】迷宫花园(maze)
- 文章标题
- 从技术角度来说说区块链到底有哪些特点和运作机制
- Android中带有输入框的自定义Dialog
- remove-nth-node-from-end-of-list
- 如何设计一个牛掰的大型项目架构?
- 问题: Manifest merger failed : Attribute application@allowBackup value=(false) 解决方法
- 数据库SQL优化大总结之 百万级数据库优化方案
- [2]java微信开发-平台接入
- 判断一个字符串是否对称