char*和char[]的strcpy出错
#include<iostream>
int main()
{
char *a = NULL;//"test";
char b[5]= "test";
strcpy(b,a);
std::cout<<b;
system("pause");
}
为什么这样写总是copy不了呢?vs老是中断在strcat.asm里,什么原因呢?是不是strcpy还调用了strcat啊?
还是有其他原因呢,谁知道原理告诉我一下,还有,具体需要怎么改,谢谢!
...全文


