题解列表

筛选

明明的随机数

摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int n; scanf("%d",&n); int a[n]; for(int i=0……

c++自定义函数解法

摘要:解题思路:判断素数,再在主函数中使用循环注意事项:1,2为特殊情况参考代码:#include<iostream> #include<algorithm>using namespace std;bool……

C语言训练-数字母

摘要:**代码:** ```c #include #include int main() { int count=0,len,i=0; char a[100]; ge……

C语言训练-数字母

摘要:**思路:** 如果参数是字母,`isalpha`函数返回true。 `isalpha`函数原型在`cctype`中。 `'\0'`是字符串的结尾 **代码:** ```c++ #incl……