题解列表

筛选

简明易懂,活学活用(C++代码)

#includeusingnamespacestd;classTime{private:inth;intm;ints;public:intset(ints){this->h=s/3600;this->m=(s-this->h*3600)/60;this->s=s%60;return0;}intdisp

汪汪斗恶龙 (C++代码)

#法一#includeusingnamespacestd;intmain(){inta,b,c;intca[105],cb[105],cc[105];while(cin>>a>>b>>c){intcca,ccb;for(inti=0;i>ca[i]>>cb[i]>>cc[i];cin>>cca>>cc

汪汪斗恶龙-题解(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,