题解列表

筛选

不容易系列

摘要:```c #include int hanshu(int k);//函数声明 int hanshu (int k)//函数定义 { int n=0,i;//n 为第K站的绵羊的数量 ……

[编程入门]水仙花数判断

摘要:解题思路:思考百位、十位、个位怎么表示注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,s,m=100; while(m<1000) { a=m/1……

自定义函数之字符串连接

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void my_strcat(char *pa,char *pb,int len)    //定义我……

C++代码确定插入数字的索引

摘要:解题思路:确定插入数字的索引然后分段输出即可如何确定插入数字的索引:遍历数组中已排序好的数字如果插入的数字大于当前遍历的数字,插入数字放置到当前遍历的数字的后一位否则遍历终止注意事项:暂时不明参考代码……

1204: 大小写转换

摘要:#include<bits/stdc++.h> using namespace std; int main(){     string s;     while(getline(cin,s……

C++代码,使用string库

摘要:解题思路:逆序输出字符串for (int i=str.length()-1;i>=0;i--) cout<<str[i];注意事项:暂时不明参考代码:#include<iostream>#includ……