上一页 1 2 3 4 5 6 ··· 11 下一页
摘要: 1.如果一个结点有右子树,那么它的下一个结点就是它的右子树的最左子结点。 2.如果当前节点没有右儿子,我们可以沿着指向父结点的指针一直向上遍历,直到找到一个是它父结点的左子结点的结点。 阅读全文
posted @ 2020-03-27 23:45 靖愁 阅读(138) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-03-25 15:05 靖愁 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 在control.c文件中调用IAR math库文件自带的pow函数 1.在control.h中添加 #include <math.h> 2.在control.c中添加#include <math.h> 如果调用不成功的话,可以在IAR软件里面设置project >Option-->General 阅读全文
posted @ 2020-03-25 14:57 靖愁 阅读(669) 评论(0) 推荐(0) 编辑
摘要: c/c++中获取字符串长度。有以下函数:size()、sizeof() 、strlen()、str.length();一、数组或字符串的长度:sizeof()、strlen()1、sizeof():返回所占总空间的字节数(1)、对于整型字符型数组(2)、对于整型或字符型指针2、strlen():返回 阅读全文
posted @ 2020-03-23 17:12 靖愁 阅读(417) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/fengbingchun/article/details/83990685 Windows10上已安装vs2013,在编译MXNet时用到了一些C++14的特性,vs2013是不支持的,因此在已装有vs2013的机子上再装vs2017社区版。vs2017社 阅读全文
posted @ 2020-03-20 15:31 靖愁 阅读(1383) 评论(1) 推荐(0) 编辑
摘要: 1 class Solution { 2 public: 3 int StrToInt(string str) { 4 if(str.size() == 0) return 0; 5 6 int k; 7 //去空格 8 while(str.size() != 0 && str[k] == ‘ ’) 阅读全文
posted @ 2020-03-17 20:39 靖愁 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 正则表达式 - 语法 表示数值的字符串(C++描述) 表示数值的字符串 阅读全文
posted @ 2020-03-17 11:07 靖愁 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 转自:c++ 关于char *的类库函数 一,拷贝: char stpcpy(char *dest,const char *src) 将字符串src复制到dest char strncpy(char *dest,const char *src,size_t maxlen) 复制src中的前maxle 阅读全文
posted @ 2020-03-17 09:41 靖愁 阅读(1100) 评论(0) 推荐(0) 编辑
摘要: 思路:https://blog.csdn.net/qq_28410301/article/details/100182901 class Solution { public: bool isMatch(string str, string pattern) { //递归结束 if(str.empty 阅读全文
posted @ 2020-03-17 06:43 靖愁 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 链表 AcWing 34. 链表中环的入口结点 66. 两个链表的第一个公共结点 17.从尾到头打印链表 29. 删除链表中重复的节点 ListNode* dummy = new ListNode(-1); dummy->next = pHead; ListNode* p = dummy; 33. 阅读全文
posted @ 2020-03-16 01:36 靖愁 阅读(235) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 11 下一页