C中的常数结构 [英] Constant structure in C

查看:74
本文介绍了C中的常数结构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



  static   const   struct  ab [] = {

{ abc 0 },
{},

};

任何人都可以告诉我这意味着什么,以及什么是恒定的结构?





谢谢

shan

解决方案

struct是一个用户定义的数据集,某种程度上是一个没有任何功能的类。

常数意味着你无法改变它。



请阅读一些关于C语言的基本内容,如C ++ for Dummies



- > http://www.amazon.com/Beginning-Programming-C-For-Dummies/dp/0470617977

hi all,

static const struct a b[] = {
   
                {"abc", 0},
                {},

        };

can any one tell me what does it mean and also what is constant structure?


Thanks
shan

解决方案

a struct is a user defined data set somehow a class without any function.
Constant means you cant change it.

Please read some basic stuff about the C-Language like "C++ for Dummies"

-> http://www.amazon.com/Beginning-Programming-C-For-Dummies/dp/0470617977


这篇关于C中的常数结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆