例:char buf[100] = "Hello World!"; csting str; str = buf;//此时str = "Hello World!"; 转载于:https://www.cnblogs.com/pengjun-shanghai/p/5070157.html