![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
在读菜鸡
这个作者很懒,什么都没留下…
展开
-
问题 1116: IP判断
IP判断题解题目如图:需要的函数:string str函数名称函数意义语言str.at(i)返回string中的第i个字符。C++str.assign(“AAA”)以AAA代替string中的内容。C++int atoi(const char *str)将一个字符串转换为int类型。Cconst char *c_str()将strin...翻译 2019-11-12 22:40:17 · 334 阅读 · 0 评论 -
二叉树的递归建立的两种方式
结构体的定义:typedef struct Node{ char data; struct Node *lchild; struct Node *rchild;}BitNode,*BiTree;第一种方式:该种方式需要返回一个为BiTree类型的指针,并将它在赋给头指针T,在函数中也要将递归调用返回的指针分别赋给T->lchild和T->rchild(易忘点)。如果忘...原创 2019-11-09 15:11:31 · 569 阅读 · 1 评论