stringstrCIN > > str;CStringstr2Str2。格式化(%s,1,不使用usingnamespacestd如何使用string类可以单独声明:using STD::string;如果你想使用ctring头文件中的函数,只需#include。
/5 _ 19。CPP:定义了控制台Application程序的入口点。# include # include # include
j0;//的第一个非数字位置;iszPathpathszPath。# include # include voidmain(){ CStringpath;路径,GetBufferSetLength(256);cin > >路径。GetBuffer(路径,GetLength());标准输。