摘要:
1054 求平均值 (20分) https://pintia.cn/problem-sets/994805260223102976/problems/994805272659214336 #include <cstdio> #include <cstring> #include <string> # 阅读全文
posted @ 2020-01-22 23:28
yyer
阅读(222)
评论(0)
推荐(0)
摘要:
std::string::substr string substr (size_t pos = 0, size_t len = npos) const; Generate substring Returns a newly constructed string object with its val 阅读全文
posted @ 2020-01-22 20:23
yyer
阅读(831)
评论(0)
推荐(0)
摘要:
一、C++中substr函数用法 #include<string> #include<iostream> using namespace std; int main() { string s("12345asdf"); string a = s.substr(0,5); //获得字符串s中从第0位开 阅读全文
posted @ 2020-01-22 20:12
yyer
阅读(235)
评论(0)
推荐(0)
摘要:
1057 数零壹 (20分) https://pintia.cn/problem-sets/994805260223102976/problems/994805270914383872 第一次:段错误 错误代码: 1 #include <cstdio> 2 #include <cstring> 3 阅读全文
posted @ 2020-01-22 00:50
yyer
阅读(148)
评论(0)
推荐(0)
摘要:
1058 选择题 (20分) https://pintia.cn/problem-sets/994805260223102976/problems/994805270356541440 1 #include <iostream> 2 #include <cstdio> 3 #include <cst 阅读全文
posted @ 2020-01-22 00:12
yyer
阅读(230)
评论(0)
推荐(0)

浙公网安备 33010602011771号