发布时间:2018-10-21编辑:佚名阅读(3409)
char *a[] = { "hello", "the", "world" };//报错:"const char *" 类型的值不能用于初始化 "char *" 类型的实体
前面加上 const。
const char *a[] = { "hello", "the", "world" };
关键字:const char *初始化char *实体
上一篇:使用UsbAsp给ATMEGA328P NANO烧写bootloader
下一篇:深入分析WinForm控件之Dock顺序调整的详解
2人
0人
Copyright © 2018 我的空间 闽ICP备17023514号-2