2014年3月14日

字符串,字符数组(C/C++)

摘要: 这个地方困惑我好久了,废话不多说 char c1[]="12345"; char *c2="12345"; string c3="12345"; int a1=strlen(c1); int a2=strlen(c2); int a3=strlen(c3);//error: cannot convert 'std::string {aka std::basic_string}' to 'const char*' for argument '1' to 'size_t strlen 阅读全文

posted @ 2014-03-14 10:21 crane_practice 阅读(875) 评论(0) 推荐(0) 编辑

导航