摘要: #include <iostream>using namespace std;int main(){ char *p=new char[10];// *p="zds" 错误 strcpy(p,"zds"); char *q=new char[10];// q=p 错误// *q=*p; 错误 strcpy(q,p); cout<<p<<endl; cout&l... 阅读全文
posted @ 2010-11-18 23:34 瓜蛋 阅读(344) 评论(2) 推荐(0) 编辑