摘要:
分析: 使用字符串拼接 #include <iostream>#include <cstring> using namespace std;int main(){ int score; string tem1,tem2, stuma , stumi; int max=-1 , min=10000;i 阅读全文
摘要:
(1)输入输出 输入运算符“>>”默认会忽略空格,遇到空格就认为输入结束; >> cin string << cin (2) 获取长度 strlen(str)来获取char数组的实际长度 #include <cstring> char str[20]="0123456789"; int a = st 阅读全文
摘要:
#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 阅读全文