题解列表

筛选

三位数反转 (C语言代码)

摘要:解题思路:用字符串保存直接反输出注意事项:直接输出printf("%c%c%c",s[2],s[1],s[0]);是错误的  因为输入两位数的时候,s[2]是'\0'了参考代码:#in……

大小写转换 (C语言代码)

摘要:解题思路: 一边输入一边输出,输出时注意将小写变为大写即可,英文字母小写变为大写只需要减32即可注意事项:参考代码:#include <stdio.h>#include <stdlib.h>int m……

可 AC

摘要:解题思路:用字符数组储存两个加数,从个位开始,进行相加,结果存放另一个数组里,(顺便考虑是否进位)          注意事项:  在下的方法  要注意 每次输入数据时,要进行清空数组和进……

简单的a+b (Java代码)

摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class AddDemo {   public static void main(String[] ar……

发工资咯 (C语言代码)

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

统计字符数 (C++代码)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>#include<iostream>using namespace std;void cmax(char……

字符串连接 (C++代码)可AC

摘要:解题思路:用string 的性质就可以解决了注意事项:参考代码:#include <iostream> #include <string> using namespace std; int ma……