int *it=NULL; int a= 100; it = &a; it = 100; //error,不能直接给指针变量赋值 char *st; st = "test";//ok,这时候st不是指向char的变量了?能够直接赋值 cout<<st;输出了test字符串 cout<<*st;输出了t
64,637
社区成员
250,559
社区内容
加载中
试试用AI创作助手写篇文章吧