编译期强制函数参数为字符串常量
摘要:
设计一函数f(),使用得下面代码中的第一个f()调用可正常编译,而其它编译报错#include #include int main(){ f("hello"); // 正常编译通过 const char* str1 = "hello"; f(... 阅读全文
posted @ 2015-10-20 17:44 岚天逸见 阅读(238) 评论(0) 推荐(0)
2015年10月20日 #
posted @ 2015-10-20 17:44 岚天逸见 阅读(238) 评论(0) 推荐(0)