[编程入门]结构体之成绩记录-题解(C语言代码) ```c#include#include//定义学生成绩结构体改名为stutypedefstructstudent{charch[20];charname[20];intgrade[3];}stu;//程序入口main函数intmain(){//为学生输入成绩的函数定义voidinput(stu*sp 题解列表 2019年09月30日 0 点赞 0 评论 2526 浏览 评分:9.3
优质题解 数据结构-链表的基本操作-题解(C语言代码) 摘要:首先先把题目要求分明确了。然后利用函数一步一步实现。 题目要求的字符串有四个,分别是 “insert” `L *insert (L *insHead);`、 “delete” `L *del (…… 题解列表 2019年10月01日 0 点赞 4 评论 3633 浏览 评分:9.3
[STL训练]亲和串-题解(C++代码) 我的是C++风格的,上面的题解是C风格的```#include#includeusingnamespacestd;intmain(){strings1,s2;while(cin>>s1>>s2){s1+=s1;if(s1.find(s2)!=string::npos)cout 题解列表 2019年10月04日 0 点赞 0 评论 1586 浏览 评分:9.3
释放魔法-题解(C++代码) 题目指明使用0来补全原矩阵那么如图所示,第一行第一列的结果为:`0*1+0*0+0*1+0*2+1*1+2*1+0*0+1*0+1*0=3`第二行第二列的结果为:`1*1+2*0+3*1+1*2+1*1 题解列表 2019年10月04日 0 点赞 0 评论 1405 浏览 评分:9.3
蓝桥杯算法提高VIP-队列操作-题解(C++代码) #直接使用c++的STL的queue来解决**这是queue的用法**1.定义queue(要有头文件#include)queueq1;queueq2;2.接口back()返回一个引用,指向队列的最后一个元素。empty()函数返回真(true)如果队列为空,否则返回假(false)。 题解列表 2019年10月05日 0 点赞 1 评论 814 浏览 评分:9.3
动态分配空间+结构体+冒泡排序 ```c#include#include//后面分配动态内存时用了malloc函数,所以得加此头文件intlen;//定义学生个数(全局定义)typedefstructStudent//自定义结构体来定义学生的各种信息,并将此变量类型更名为ST{charnum[100];charname[100];i 题解列表 2019年10月13日 0 点赞 0 评论 1875 浏览 评分:9.3
校门外的树-题解(C++代码) by Zfans. ```cpp#includeusingnamespacestd;structtree{intstart,end;};intmain(){intL,M;cin>>L>>M;tree*t=newtree[L+1];for(intk=1;k>start>>end;t[start].start=start;t 题解列表 2019年10月15日 0 点赞 0 评论 1172 浏览 评分:9.3
[编程入门]迭代法求平方根-题解(C语言代码) #Nowtoniteratorfunction##Software:C/C++$##Hardware:Ipad```#include#includeintmain(){inta;scanf("%d",&a);doublex=1.0,x1;do{x1=x;x=(x1+a/x1)/2;}while(fab 题解列表 2019年10月15日 0 点赞 2 评论 1868 浏览 评分:9.3
The 3n + 1 problem -题解(C语言代码) 摘要:#### 1095: The 3n + 1 problem [原题连接:The 3n +1 problem](https://www.dotcpp.com/oj/problem1000.html "…… 题解列表 2019年10月16日 0 点赞 8 评论 1452 浏览 评分:9.3
蓝桥杯基础练习VIP-数的读法-题解(C++代码) 写的都是基础的代码,应该比较好理解,有问题可以交流,谢谢!```cpp#include#includeusingnamespacestd;intmain(){stringa[12]={"ling","yi","er","san","si","wu", 题解列表 2019年10月18日 0 点赞 0 评论 1330 浏览 评分:9.3