题解列表
[编程入门]结构体之时间设计--傻瓜式写法(c语言)
摘要:解题思路:注意事项:参考代码:#include <stdio.h>
struct date{
int year;
int month;
int day;
};
in……
用两个变量解决等差数列求和
摘要:解题思路:用两个变量来解决等差数列求和的问题注意事项:注意两个变量之间的关系参考代码:#include<stdio.h>int main(){ int n,i,sum1=2,sum2=0; ……
1201: 回文数(一)
摘要:```cpp
#include
#include
using namespace std;
bool is_huiwen(int n)
{
char a[100];
bo……
1202: 多输入输出练习1
摘要:```cpp
#include
using namespace std;
int main()
{
int x,max;
while(cin>>x)
{
……
1203: 多输入输出练习2
摘要:注意事项:这里的PI必须要保留4位多一位或少一位都会出错
```cpp
#include
#include
#define PI 3.1415
using namespace std;
i……
字符串分类统计 十分十分十分简单的方法(c语言)
摘要:解题思路:1.输出字母个数2.输出数字个数3.输出空格个数4.输出其他字符个数注意事项:参考代码:#include<stdio.h>
#include<string.h>
void fun(cha……
1204: 大小写转换
摘要:放心,题目的End of file其实没什么用,可以不处理
```cpp
#include
#include
using namespace std;
int main()
{
……
运用指针交换两个整型数字
摘要:解题思路:注意事项:参考代码:#include<stdio.h>void swap(int* a, int* b){ int t = *a;//引入中间变量,将*a的值保存到t中 *a = *b; *……