题解列表
自定义函数之字符串反转
摘要:解题思路:这道题可以使用数组或者链表来做,我采用的循环链表的方式注意事项:参考代码:typedef struct LinkT{ int num; s……
1098: 陶陶摘苹果
摘要:解题思路:这题难度不大,欧耶注意事项:吃好喝好睡好参考代码:/*1098:陶陶能够摘到的苹果的数目**func:TaoPickingApples**intput:@height 陶陶的身高……
使用gets不能使用fgets,原因:笔者认为第二个测试用例太长了,超过了一行,因此使用gets无限制读取,直到读到空格和回撤符号
摘要:#include<stdio.h>#include<string.h>#include<stdlib.h>int compare(const void *p1,co……
1123-列出最简真分数列表
摘要:代码:#include int main() { for (int i = 0; i ……
利用vector定义数组大小,static_cast显式转换
摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;#include <vector>int main(){ int n……
编写题解 1866: 三位数反转
摘要:#include<bits/stdc++.h>using namespace std;int main(){ int i; ……
编写题解 2779: 输出绝对值
摘要:#include<bits/stdc++.h>using namespace std;int main(){ double i; &nbs……