摘要: #include "iostream.h"#include "string"class car{public:char color[5];void honk();};void car::honk(){cout<<"beep!!"<<endl;}void main(){car benchi,*p;p=new car;p->honk();benchi.honk();strcpy(benchi.color,"blue"); cout<<benchi.color<<en 阅读全文
posted @ 2011-11-15 17:08 奇奇博客 阅读(111) 评论(0) 推荐(0)