Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1676683
  • 博文数量: 1493
  • 博客积分: 38
  • 博客等级: 民兵
  • 技术积分: 5834
  • 用 户 组: 普通用户
  • 注册时间: 2009-08-19 17:28
文章分类

全部博文(1493)

文章存档

2016年(11)

2015年(38)

2014年(137)

2013年(253)

2012年(1054)

2011年(1)

分类:

2012-08-14 08:48:20

原文地址:typedef的用法 作者:高傲的活着


点击(此处)折叠或打开

  1. #include <stdio.h>

  2. typedef struct Student
  3. {
  4.     int sid;
  5.     char name[100];
  6.     char ***;
  7. }* PSTU,STU; //PSTU 等价于struct Student * ,STU 等价于struct Student

  8. int main(void)
  9. {
  10.     STU stu;
  11.     PSTU ps = &stu;
  12.     ps->sid =99;
  13.     printf("%d\n",ps->sid);
  14.     
  15.     return 0;
  16. }

阅读(143) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~