上一页 1 2 3 4 5 6 7 8 ··· 14 下一页
摘要: #include #include #include #include #include using namespace std; void del(char *str,char *sub) { char *head = NULL; char *p = NULL; head = p = str; int sublen = strlen(sub); ... 阅读全文
posted @ 2017-10-28 18:00 青儿哥哥 阅读(383) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include using namespace std; void del(char *str,char c) { char *head = NULL; char *p = NULL; head = p = str; while(*p != '\0') { ... 阅读全文
posted @ 2017-10-28 17:59 青儿哥哥 阅读(204) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include using namespace std; void convert(int num,vector &value) { if(num) { value.push_back(num%10); convert(num / 10,value); ... 阅读全文
posted @ 2017-10-28 17:47 青儿哥哥 阅读(606) 评论(0) 推荐(0) 编辑
摘要: nt second(int value[],int n) { int first = value[0]; int second = value[1]; int i = 0; for(i = 0;i first) { second = first; first = value[i]; ... 阅读全文
posted @ 2017-10-28 15:31 青儿哥哥 阅读(2276) 评论(0) 推荐(0) 编辑
摘要: int yue(int num1,int num2) { if(num1 < num2)//交换 { num1 ^= num2; num2 ^= num1; num1 ^= num2; } while(num1 % num2 != 0) { int temp = num1; n... 阅读全文
posted @ 2017-10-27 16:16 青儿哥哥 阅读(750) 评论(0) 推荐(0) 编辑
摘要: 一开始我是这样写的 后来改成了 第一种每次都从2开始找,这样是浪费时间的,因为每次从上次的m开始找即可 阅读全文
posted @ 2017-10-27 16:01 青儿哥哥 阅读(1118) 评论(0) 推荐(0) 编辑
摘要: 1、 文件存储结构 Linux正统的文件系统(如ext2、ext3)中,一个文件由目录项、inode和数据块组成。 目录项:包括文件名和inode节点号。 inode:又称文件索引节点,是文件基本信息的存放地和数据块指针存放地。 其中文件基本信息包括:文件的长度、文件在磁盘上的存放的位置、文件创建、 阅读全文
posted @ 2017-10-27 14:45 青儿哥哥 阅读(638) 评论(0) 推荐(0) 编辑
摘要: 嵌入式软件面试小点 什么是预编译?什么时候需要预编译 切记预编译和编译与处理是两个不同的概念(网上很多人都把这两个混为一谈,包括百度百科) 预编译就是将一些常用的、被反复使用的而且几乎不改变的代码进行提前编译放到一个文件中,这样即使程序中其他部分进行了修改,在编译时也不需要对预编译好部分进行重新编译 阅读全文
posted @ 2017-10-19 13:43 青儿哥哥 阅读(340) 评论(0) 推荐(0) 编辑
摘要: 带环链表的几个问题 遇到了一个面试题。 题是这样的: 1、 判断一个单链表是否存在环 2、 如果存在,求环的长度 3、 如果存在,求环的起始节点 4、 如果存在,整个链表的长度 参考了 http://blog.csdn.net/liuxialong/article/details/6555850 h 阅读全文
posted @ 2017-10-03 21:01 青儿哥哥 阅读(403) 评论(0) 推荐(0) 编辑
摘要: C++对象的内存布局以及虚函数表和虚基表 本文为整理文章, 参考: http://blog.csdn.net/haoel/article/details/3081328 http://blog.csdn.net/angelxf/article/details/7746034 整理的也不到位,还有很多 阅读全文
posted @ 2017-09-29 14:34 青儿哥哥 阅读(1869) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 14 下一页