c++输出string型的字符串

c++中,不能用%s直接输出string,而是通过printf(“%s”,s.c_str());输出string型的,否则会出错哦!!!!

猜你喜欢

转载自blog.csdn.net/jbh_sunshine/article/details/84746371