上一页 1 2 3 4 5 6 7 ··· 24 下一页
摘要: 参考: https://docs.microsoft.com/en-us/dotnet/api/system.io.binaryreader?view=netframework-4.8 https://docs.microsoft.com/en-us/dotnet/api/system.io.bin 阅读全文
posted @ 2020-03-03 20:34 路边的十元钱硬币 阅读(368) 评论(0) 推荐(0)
摘要: 参考: https://docs.microsoft.com/zh-cn/dotnet/api/system.net.sockets.tcpclient?view=netframework-4.8 C# 自带的 TCP 通讯类 对 ASCII 和 HEX 发送方式的理解: 无论是哪一种发送方式,决定 阅读全文
posted @ 2020-03-03 20:26 路边的十元钱硬币 阅读(373) 评论(0) 推荐(0)
摘要: 参考: https://docs.microsoft.com/zh-cn/dotnet/csharp/language-reference/keywords/using-statement "提供可确保正确使用 IDisposable 对象的方便语法。" "using 语句可确保调用 Dispose 阅读全文
posted @ 2020-03-03 20:20 路边的十元钱硬币 阅读(197) 评论(0) 推荐(0)
摘要: 参考: https://docs.microsoft.com/zh-cn/dotnet/api/system.threading.tasks.task?view=netframework-4.8#definition “Task 类表示不返回值并且通常以异步方式执行的单个操作” 来自参考的示例代码: 阅读全文
posted @ 2020-03-02 19:53 路边的十元钱硬币 阅读(262) 评论(0) 推荐(0)
摘要: 参考: https://docs.microsoft.com/zh-cn/dotnet/csharp/language-reference/keywords/async https://docs.microsoft.com/zh-cn/dotnet/csharp/programming-guide/ 阅读全文
posted @ 2020-03-02 18:43 路边的十元钱硬币 阅读(201) 评论(0) 推荐(0)
摘要: 参考: https://docs.microsoft.com/zh-cn/dotnet/csharp/language-reference/operators/await 代码: // // Connect to devices data stream if (!await dataStream.C 阅读全文
posted @ 2020-03-02 17:33 路边的十元钱硬币 阅读(133) 评论(0) 推荐(0)
摘要: #include <iostream> #include <string> #include <stack> // https://zh.cppreference.com/w/cpp/container/stack // std::stack 类是容器适配器,它给予程序员栈的功能——特别是 FILO (先进后出)数据结构。 // 该类模板表现为底层容器的包装器——只提供特定函数集合。栈从被称作栈顶 阅读全文
posted @ 2019-12-22 16:19 路边的十元钱硬币 阅读(1973) 评论(0) 推荐(0)
摘要: #include <iostream> #include <string> #include <deque> // https://zh.cppreference.com/w/cpp/container/deque // vector 和 deque 的差别 // https://www.cnblogs.com/zhuyf87/archive/2012/12/09/2809896.html usi 阅读全文
posted @ 2019-12-22 15:58 路边的十元钱硬币 阅读(1100) 评论(0) 推荐(0)
摘要: 主要差别: list 是双向链表,forward_list 是双向链表。 成员函数差异: * forward_list 中设计的一系列 xxx_after() 的原因: 其中的元素仅知道后面的元素,不知道前面的元素。(单向链表的特性)所以类似于 insert 这样的操作,需要指定前一个元素的迭代器, 阅读全文
posted @ 2019-12-21 11:01 路边的十元钱硬币 阅读(1660) 评论(1) 推荐(0)
摘要: #include <iostream> #include <string> #include <forward_list> using namespace std; // https://zh.cppreference.com/w/cpp/container/forward_list std::ostream& operator<<(std::ostream& ostr, const std::f 阅读全文
posted @ 2019-12-15 21:11 路边的十元钱硬币 阅读(1434) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 24 下一页