题解列表

筛选

1099 数组实现 c++

摘要:解题思路:              用数组模拟数轴              可以将一开始的初值全部设置为零              将要修路的路段用for循环将1填到要修的路段上      &nbs

简明易懂的题解,结构体之成绩记录

解题思路:注意事项:参考代码:#include#includetypedefstruct{charnum[100];charname[100];intsub1;intsub2;intsub3;}gra;//这个结构typedef为gra。gra*p;//这个指针做全局变量方便free,后面会细说。

复数的计算

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <iostream>#include <string.h>#include <math.h>#include <io……

Hifipsysta- 1162-密码(C++代码)

```cpp#include#include#include#includeusingnamespacestd;intmain(){intN;cin>>N;stringmystr;stringsearch_str="~,!,@,#,$,%,^";for(inti=0;i>mystr;boollow=f