首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C语言 >

程序为何异常

2012-04-12 
程序为何错误!C/C++ code#include iostream#include cstringusing namespace stdint main(){char* p

程序为何错误!

C/C++ code
#include <iostream>#include <cstring>using namespace std;int main(){    char* p ="a0";    if((while(*p++))==0)        cout<<"operate error"<<endl;}


[解决办法]
C/C++ code
if((while(*p++))==0) 

热点排行
Bad Request.