2008秋季-计算机软件基础-0908课堂用例(1)
2008-09-08 16:51
465 查看
#include<stdio.h>
#include<stdlib.h>
struct nodetype
{
int data;
/* data数据项用于存放结点的数据值 */
struct nodetype *next;
/* next数据项存放下一个结点的指针 */
};
void main()
{
int a;
int *p;
printf(" %d ",sizeof(a));
printf(" %d ",sizeof(struct nodetype));
p=malloc(4);
scanf("%d",p);
printf(" %d ",*p);
}
#include<stdlib.h>
struct nodetype
{
int data;
/* data数据项用于存放结点的数据值 */
struct nodetype *next;
/* next数据项存放下一个结点的指针 */
};
void main()
{
int a;
int *p;
printf(" %d ",sizeof(a));
printf(" %d ",sizeof(struct nodetype));
p=malloc(4);
scanf("%d",p);
printf(" %d ",*p);
}
相关文章推荐
- 2008秋季-计算机软件基础-0908课堂用例(2)
- 2008秋季-计算机软件基础-0910课堂用例(1)
- 2008秋季-计算机软件基础-0922课堂用例(2)
- 2008秋季-计算机软件基础-0917课堂用例(1)
- 2008秋季-计算机软件基础-0901课堂用例
- 2008秋季-计算机软件基础-0903课堂用例(1)
- 2008秋季-计算机软件基础-0917课堂用例(2)
- 2008秋季-计算机软件基础-0922课堂用例(1)
- 2008秋季-计算机软件基础-0903课堂用例(2)
- 2008秋季-计算机软件基础-0827课堂用例
- 2008秋季-计算机软件基础-如何使用FTP下载局域网内资源
- 2008秋季-计算机软件基础-循环链队列
- 2008秋季-计算机软件基础-第二章 线性数据结构(PPT课件)
- 2008秋季-计算机软件基础-应用化学制药工程-授课日历
- 2008秋季-计算机软件基础-实验进程表-应用化学制药工程
- 2008秋季-计算机软件基础-第三章 非线性数据结构(PPT课件)
- 2008秋季-计算机软件基础-点名册-应用化学制药工程
- 2008秋季-计算机软件基础-0825课堂用例
- 2008秋季-计算机软件基础- 线性表顺序存储 - 菜单
- 2008秋季-计算机软件基础-PPT课件-第四章 查找与排序