题解列表

筛选

汪汪斗恶龙-题解(C++代码)

#C++描述##代码-####代码块```cpp#includeusingnamespacestd;classrole{//创建角色类public:inthealth;intattack;intjingyanzhi;intjingyan;voidshengji();};voidrole::shengj

考试排名-题解(C语言代码)

```c#include#include#includetypedefstructBSTree*BST;//定义排序数structBSTree{charname[15];intAC;inttime;BSTLeft,Right;};BSTInsert(BSTT,

[编程入门]结构体之时间设计-题解(C语言代码)

````c/*定义一个结构体变量(包括年、月、日)。计算该日在本年中是第几天,注意闰年问题。输入年月日输出当年第几天样例输入20001231样例输出366*/#includestructDate{intyear;intmonth;intday;};structDatedate;intmain(){in

小O的乘积-题解(C语言代码)

```c/*先排序,在根据a[0]和a[n-1]的符号判断选择什么方案*/#include#includeintbijiao(constvoid*a,constvoid*b)//定义qsort的排序方式(小到大){return*(int*)a-*(int*)b;}intmain(){intn,