摘要: 输入一个链表,按链表从尾到头的顺序返回一个ArrayList。 /** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : * val(x), next(NULL) { * } * };*/ 方法一利 阅读全文
posted @ 2020-05-02 22:12 转瞬即逝1995 阅读(116) 评论(1) 推荐(0) 编辑
摘要: 请实现一个函数,将一个字符串中的每个空格替换成“%20”。例如,当字符串为We Are Happy.则经过替换之后的字符串为We%20Are%20Happy。 class Solution {public: void replaceSpace(char *str,int length) { if(s 阅读全文
posted @ 2020-05-01 23:24 转瞬即逝1995 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 在一个二维数组中(每个一维数组的长度相同),每一行都按照从左到右递增的顺序排序,每一列都按照从上到下递增的顺序排序。请完成一个函数,输入这样的一个二维数组和一个整数,判断数组中是否含有该整数。 class Solution {public: bool Find(int target, vector< 阅读全文
posted @ 2020-04-30 21:40 转瞬即逝1995 阅读(94) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-10-15 19:40 转瞬即逝1995 阅读(605) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-10-15 19:37 转瞬即逝1995 阅读(508) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-10-15 19:36 转瞬即逝1995 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 这里只写了ath9k层到虚拟硬件层的一些东西,mac层的没有整理。 传输途径主要从ath9k_tx() >ath_tx_start() >ath_tx_send_normal() >ath_tx_txqaddbuf() >ath9k_hw_txstart() ath9k_tx()(main.c): 阅读全文
posted @ 2019-06-25 14:44 转瞬即逝1995 阅读(645) 评论(0) 推荐(0) 编辑
摘要: 如上图,整个 mac 层分成两个部分——UMAC 和 LMAC。LMAC 分成 MAC 下半部分和硬件抽象层。 硬件抽象层和ath9k层的连接 在hw.h中的函数struct ath_hw_ops() ath9k层和mac层的连接 在mac80211.h中函数struct ieee80211_ops 阅读全文
posted @ 2019-06-25 14:37 转瞬即逝1995 阅读(770) 评论(0) 推荐(0) 编辑
摘要: 结构体指针必须初始化 转载地址忘记了存 struct student{ char *name; int score; struct student* next; }stu,*stu1; int main(){ stu.name = (char*)malloc(sizeof(char)); /*1.结 阅读全文
posted @ 2019-06-24 22:04 转瞬即逝1995 阅读(8479) 评论(1) 推荐(1) 编辑
摘要: 转载:https://blog.csdn.net/a_ran/article/details/44755759 结构体的三种初始化方式 #include <stdio.h> struct student_st { char c; int score; const char *name; }; sta 阅读全文
posted @ 2019-06-24 22:01 转瞬即逝1995 阅读(10484) 评论(0) 推荐(1) 编辑