2008秋季-计算机软件基础-0908课堂用例(1)

#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);
}
posted @ 2008-09-08 16:51  emanlee  阅读(246)  评论(0编辑  收藏  举报