![]() |
#2
yangfrancis2015-03-21 21:51
|
char *i="hello!\n";
在c语言环境下就可以通过,c++反而通不过了。。。
vc6.0倒是能通过,而code::blocks的c语言环境建立的.c文件也能通过,就是c++环境的.cpp文件里就提示warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
为什么呀?