strlen() 需要 include
size() 需要 include
vector 是个容器 是复合类型
vector
vecotr
char str1[]="abcdefig";
string str="abcdefig";
const char str1*=str.c_str();
是c风格的 字符串
char str1[]={a,b,c,d,e,f,g};这样就没有自动添加了
Array.GetLength(int a) //a为维数,如Array.GetLength(0) ,表示获得第一维中的元素个数。
函数2只能是你自己写代码封装个函数了。
vector不会自动添加\0 .