摘要: int a=-1; string str="abc"; if(a<str.length()) cout<<"y"<<endl; else cout<<"x"<<endl; 测试结果:y 原因:length()返回的是unsigned类型的,int会被强制转换为unsigned,-1会被转换为4294 阅读全文
posted @ 2020-10-06 22:59 肥斯大只仔 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 题目内容 分析include/linux/list.h中哈希表的实现,给出分析报告,并编写内核模块,调用其中的函数和宏,实现哈希表的建立和查找 关于头文件中函数、宏、结构的分析 默认已经理解用 数组链表实现哈希表的原理 struct hlist_head,strutc hlist_node head 阅读全文
posted @ 2020-10-06 14:03 肥斯大只仔 阅读(466) 评论(0) 推荐(0) 编辑