hello head

该文被密码保护。 阅读全文
posted @ 2017-10-20 02:15 gardonkoo 阅读(21) 评论(0) 推荐(0) 编辑
摘要: int main() { char userNames[4][10] = {"joe", "betty", "betty", "xxx" }; char phoneNums[4][10] = {"110", "119", "999", "911"}; PhoneBook *s, *tmp; int i=0; for (; i us... 阅读全文
posted @ 2017-09-29 15:23 gardonkoo 阅读(109) 评论(0) 推荐(0) 编辑
摘要: #include /* strcpy */ #include /* malloc */ #include /* printf */ #include "uthash.h" #define MAX_USERNAME_LEN (30) #define MAX_PHONENUM_LEN (30) #define ERROR_PARAMETER ... 阅读全文
posted @ 2017-09-29 15:22 gardonkoo 阅读(199) 评论(0) 推荐(0) 编辑
摘要: /**************************************************************************************** ******功 能:遍历哈希表获取所有的用户名和电话号码 ******输入参数:userName表示要查询的用户名 ****** phoneNumberFound 用来存放查找到的电话号码(由调... 阅读全文
posted @ 2017-09-29 15:22 gardonkoo 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 利用string类或整形数组可以实现大数的加减乘除。string类具有较好的动态增长性,整形数组处理数字的运算比较方便。 两者都是将运算的对象按照各个数位保存起来,每个数位按照对应的运算法则进行运算。 1. 大数相加 阅读全文
posted @ 2017-09-08 14:17 gardonkoo 阅读(212) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; typedef struct Node { int val; Node* left; Node* right; }Node; Node* createNode(int val) { Node* node = new Node; node->val = val; node->left... 阅读全文
posted @ 2017-08-28 18:10 gardonkoo 阅读(119) 评论(0) 推荐(0) 编辑
摘要: char* strcpy_s(char* dest, unsigned int size, char* src) { if (NULL == dest || NULL == src || 0 == size) { return NULL; } char* p = dest; char* q = src; int srcSize = ... 阅读全文
posted @ 2017-08-28 12:27 gardonkoo 阅读(189) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2017-08-24 17:28 gardonkoo 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 1、MYSQL服务启动出现错误。 MySQL 'localhost' (10061) 我这里遇到的问题是如下解决的: my.ini文件里#Path to installation directory. All paths are usually resolved relative to this.b 阅读全文
posted @ 2017-08-24 17:06 gardonkoo 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 这道题是京东电话面试给出的,大致意思是: 对于一个文本文件,需要频繁地在它的给定的位置插入新的串,问如何快速地进行插入,并将新的文本信息持久化保存。 算法:对于原始文本只进行一次读取,将每次插入的偏移量信息(相对于原始文本的头指针的offset)以及文本信息保存到新的文件里。 文本恢复通过加载原始文 阅读全文
posted @ 2017-08-24 17:04 gardonkoo 阅读(102) 评论(0) 推荐(0) 编辑

hello foot