- 博客(3)
- 资源 (7)
- 收藏
- 关注
原创 字符串专题练习-P1957 口算练习题
题目传动门 解决几个点,这个问题就算解决了 输入 求长度 字母转数字(负数负数负数) 还有一个就是别自己加戏(比如我就习惯性的多输入了很多空格) #include <cstdio> #include <iostream> #include <algorithm> #include <cstring> #include <stack> #i...
2020-03-30 16:16:53 201
原创 c/c++中size()、sizeof()、strlen()、length(),vector
1.sizeof() 一个运算符,获取类型原型所占用的字节长度 用法 sizeof(对象) sizeof(类型) 2.strlen() 计算字符串长度的函数 char a[] = “red”; strlen(a) = 6; 3.size()与length() 均为string类的成员函数 string a = “red” a.size() = 6; a.length() = 6; 其中length...
2020-03-30 14:41:01 1808
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人