蓝天

2015年10月20日 #

编译期强制函数参数为字符串常量

摘要: 设计一函数f(),使用得下面代码中的第一个f()调用可正常编译,而其它编译报错#include #include int main(){ f("hello"); // 正常编译通过 const char* str1 = "hello"; f(... 阅读全文

posted @ 2015-10-20 17:44 #蓝天 阅读(191) 评论(0) 推荐(0) 编辑

导航