摘要: 分析: 使用字符串拼接 #include <iostream>#include <cstring> using namespace std;int main(){ int score; string tem1,tem2, stuma , stumi; int max=-1 , min=10000;i 阅读全文
posted @ 2020-05-22 18:19 学啥都会 阅读(220) 评论(0) 推荐(0) 编辑
摘要: (1)输入输出 输入运算符“>>”默认会忽略空格,遇到空格就认为输入结束; >> cin string << cin (2) 获取长度 strlen(str)来获取char数组的实际长度 #include <cstring> char str[20]="0123456789"; int a = st 阅读全文
posted @ 2020-05-22 17:24 学啥都会 阅读(470) 评论(0) 推荐(0) 编辑
摘要: #include <sstream>#include <iostream>#include <stack>using namespace std;int main(){string s;stringstream ss; bool bl =true;int sum =0 ,to;cin >> s;fo 阅读全文
posted @ 2020-05-22 16:48 学啥都会 阅读(116) 评论(0) 推荐(0) 编辑