C_and_CPP 版 (精华区)
发信人: IkEbAnA (插.花), 信区: C_and_CPP
标 题: Re: 求助
发信站: 哈工大紫丁香 (Sun Jul 25 21:00:52 2004), 转信
找到根据了
"String literals" appear in C program source as strings of characters between double-quote characters ("). In ISO C, string literals can also be formed by "string concatenation": "a" "b" is the same as "ab". Modification of string literals is not allowed by the GNU C compiler, because literals are placed in read-only ~~~~~~~~
storage.
还是c++的标准库好~~~
【 在 Amia (小羊) 的大作中提到: 】
: "hello"是 const char[]
--
※ 来源:·哈工大紫丁香 bbs.hit.edu.cn·[FROM: 202.118.239.*]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:3.311毫秒