![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
笔记
文章平均质量分 52
热心网友小邵
这个作者很懒,什么都没留下…
展开
-
反转单链表的递归和非递归操作
#include <iostream> using namespace std; #define M 7 typedef struct LNode { int data; struct LNode *next; }LNode, * LinkList; LinkList CreateList(LinkList &L) { L = (LinkList) malloc (sizeof(LNode)); LNode *r = L, *p; for(in原创 2021-09-24 17:22:05 · 88 阅读 · 0 评论 -
编程练习
1.设有 n 个正整数,将他们连接成一排,组成一个最大的多位整数。 如: n =3时,3个整数13,312,343,连成的最大整数为34331213。 如: n =4时,4个整数7,13,4,246连接成的最大整数为7424613。 #include <iostream> #include <string> using namespace std; #define M 100 bool Compare(string a, string b) { if(a + b >=原创 2021-09-04 16:10:02 · 291 阅读 · 0 评论