题解列表

筛选

1000解法新手爱记录a+b

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; cin>>a; cin>……

遍历筛选法

摘要:解题思路:注意事项:注意后面输出的时候,是<k,不要越过了数组的界限参考代码:#include <stdio.h>#include <string.h>int main(……

存储输入法

摘要:解题思路:用一个函数来作为输出字符串的作用注意事项:参考代码:#include <stdio.h>#include <string.h>void str3(char str[1……

反向遍历法

摘要:解题思路:先保存,后逆向输出注意事项:处理换行符:fgets 会把输入的回车 \n 一起读入字符串,必须用 str[strcspn(str, "\n")] = '\0……