习题 6.6 写一函数,求一个字符串的长度。在main函数中输入字符串,并输出其长度。

C++程序设计(第三版) 谭浩强 习题6.6 我的设计 习题 6.6 写一函数,求一个字符串的长度。在main函数中输入字符串,并输出其长度。 代码块:ios #include <iostream> using namespace std; int stringlen(char *s); int main() { char str[20]; cout<<"Please enter
相关文章
相关标签/搜索