zoukankan      html  css  js  c++  java
  • [C语言]关于struct和typedef struct

    在C中定义一个结构体类型要用typedef:

    ***************************************************************************
        typedef struct Student
        {
        int a;
        }Stu;

    *****************************************************************************
        于是在声明变量的时候就可:Stu stu1;(如果没有typedef就必须用struct Student stu1;来声明)
        这里的Stu实际上就是struct Student的别名。Stu==struct Student

    *************************************************************************************

        typedef struct
        {
        int a;
        }Stu;

        另外这里也可以不写Student(于是也不能struct Student stu1;了,必须是Stu stu1;)

    **************************************************************************

  • 相关阅读:
    软件测试的术语及解释总结
    测试工具
    数据库客户端连接
    应用程序发生错误怎么修改
    软件测试容易忽略的缺陷
    LR中错误解决方法
    LR结果分析2
    LR结果分析
    Hive
    zookeeper
  • 原文地址:https://www.cnblogs.com/Tea1024/p/5844511.html
Copyright © 2011-2022 走看看