JAVA 应用与开发 - 集合与映射November 4, 2019 ���� �����List����Set�����Map�的������� ���������� ������iterator��Enumeration ��������� API ������的������������ 1 28 �� 1 ������� 2 Collection � Map �� 3 �� 4 Iterator �� 5 � 6 集合�����用���������������合����� �� O 集合类型分类 � Set ��������的������������� ������������的��� �� List ������的��������������� ������的���������������� �������� �� Map �����的��¡���Key-Value������ �������的��������������� 集合�����用���������������合����� �� O 集合类型分类 � Set ��������的������������� ������������的��� �� List ������的��������������� ������的���������������� �������� �� Map �����的��¡���Key-Value������ �������的���������������0 码力 | 66 页 | 713.79 KB | 1 年前3
C++高性能并行编程与优化 - 课件 - 17 由浅入深学习 map 容器由浅入深学习 map 容器 by 彭于斌( @archibate ) 我负责监督你鞋习 ! 我负责监督你鞋习 ! 本期看点: 用方括号 [ ] 取出 map 元素居然是错误的! 能不能在遍历的同时删除元素?安全吗? emplace , emplace_hint , try_emplace 的区别? 课程安排 1. vector 容器初体验 & 迭代器入门 (BV1qF411T7sd) 2 2. 你所不知道的 set 容器 & 迭代器分类 (BV1m34y157wb) 3. string , string_view , const char * 的爱恨纠葛 (BV1ja411M7Di) 4. 万能的 map 容器全家桶及其妙用举例 ( 本期 ) 5. 函子 functor 与 lambda 表达式知多少 6. 通过实战案例来学习 STL 算法库 7. C++ 标准输入输出流 & 字符串格式化 第一章:读取与写入 我负责监督你鞋习 ! 我负责监督你鞋习 ! map 查找元素的两个接口 • map 提供了两个查找元素的接口,一曰 [] ,二曰 at 。 • 那么他们两个又有什么区别呢?很多新手都分不清他俩,可能只认识 [] 。 读取 map 元素 • mapm; • 读取 map 中指定键值的元素有两种方法。 • val = m[“key”]; 0 码力 | 90 页 | 8.76 MB | 1 年前3
C++高性能并行编程与优化 - 课件 - 14 C++ 标准库系列课 - 你所不知道的 set 容器你所不知道的 set 容 器 by 小彭老师( @archibate ) 课件 & 代码: https://github.com/parallel101/course 上期回顾: https://www.bilibili.com/video/BV1qF411T7sd 课程安排 1. vector 容器初体验 & 迭代器入门 (BV1qF411T7sd) 2. 你所不知道的 set 容器 & 万能的 map 容器全家桶及其妙用举例 5. 函子 functor 与 lambda 表达式知多少 6. 通过实战案例来学习 STL 算法库 7. C++ 标准输入输出流 & 字符串格式化 8. traits 技术,用户自定义迭代器与算法 9. allocator ,内存管理与对象生命周期 set 和 vector 的区别 • 都是能存储一连串数据的容器 。 • 区别 1 : set 会自动给其中的 会保持插入时的顺序。 • 区别 2 : set 会把重复的元素 去除,只保留一个,即去重。 • 区别 3 : vector 中的元素在内 存中是连续的,可以高效地按 索引随机访问, set 则不行。 • 区别 4 : set 中的元素可以高 效地按值查找,而 vector 则 低效。 set 的排序: string 会按“字典序”来排 • set 会从小到大排序,对 int 来 说就是数值的大小比较。那么对0 码力 | 83 页 | 10.23 MB | 1 年前3
FISCO BCOS 2.1.0 中文文档6a603 ", "Topic":[] } ] 部署及调用HelloWorld合约 HelloWorld合约 HelloWorld合约提供两个接口,分别是get()和set(),用于获取/设置合约变 量name。合约内容如下: 部署HelloWorld合约 为了方便用户快速体验,HelloWorld合约已经内置于控制台中,位于控制台 目录下contracts/solidity/HelloWorld World!"; } function get()constant returns(string) { return name; } function set(string n) { name = n; } } # 在控制台输入以下指令 部署成功则返回合约地址 [group:1]> deploy HelloWorld contract 本号,使 用方式参考这里。 2. 调用合约通过callByCNS命令,使用方式参考这里。 1 # 调用set设置name [group:1]> call HelloWorld 0xb3c223fc0bf6646959f254ac4e4a7e355b50a344 set "Hello, FISCO BCOS" 0x21dca087cb3e44f44f9b882071ec6ecfcb50 码力 | 1058 页 | 740.85 KB | 1 年前3
Weblate 4.2.1 用户文档propagated across other components within it by default. This lightens the burden of repetitive and multi version translation. Disable it as per Component configuration, still producing errors for seemingly menu. 注解 You will not receive notifications for your own actions. 账户 The Account tab lets you set up basic account details, connect various services you can use to sign in into Weblate, completely Translating using Weblate Thank you for interest in translating using Weblate. Projects can either be set up for direct translation, or by way of accepting suggestions made by users without accounts. Overall0 码力 | 650 页 | 9.34 MB | 1 年前3
Weblate 4.2.2 用户文档propagated across other components within it by default. This lightens the burden of repetitive and multi version translation. Disable it as per Component configuration, still producing errors for seemingly menu. 注解 You will not receive notifications for your own actions. 账户 The Account tab lets you set up basic account details, connect various services you can use to sign in into Weblate, completely Translating using Weblate Thank you for interest in translating using Weblate. Projects can either be set up for direct translation, or by way of accepting suggestions made by users without accounts. Overall0 码力 | 650 页 | 9.34 MB | 1 年前3
Comprehensive Rust(简体中文) 202412Together — Exercise 243 48 练习解答 244 XI 裸机:上午 245 49 Welcome to Bare Metal Rust 246 50 no_std 247 50.1 极小的 no_std 程序 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248 50.2 alloc . . . each function has a single implementation. – 始终采用固定数量的参数。不支持默认参数。宏可用于支持可变函数。 – Always takes a single set of parameter types. These types can be generic, which will be covered later. 6.6 宏 宏在编译过程中会扩展为 Rust 准库包含各种有用的宏。 • println!(format, ..) prints a line to standard output, applying formatting described in std::fmt. • format!(format, ..) 的用法与 println! 类似,但它以字符串形式返回结果。 • dbg!(expression) 会记录表达式的值并返回该值。 • todo0 码力 | 359 页 | 1.33 MB | 10 月前3
Weblate 4.2 用户文档propagated across other components within it by default. This lightens the burden of repetitive and multi version translation. Disable it as per Component configuration, still producing errors for seemingly menu. 注解 You will not receive notifications for your own actions. 账户 The Account tab lets you set up basic account details, connect various services you can use to sign in into Weblate, completely Translating using Weblate Thank you for interest in translating using Weblate. Projects can either be set up for direct translation, or by way of accepting suggestions made by users without accounts. Overall0 码力 | 648 页 | 9.34 MB | 1 年前3
FISCO BCOS 2.3.0 中文文档9d208d9d3e271f8421f4813dcbc96a07d6a603 ", "Topic":[] } ] HelloWorld合约提供两个接口,分别是get()和set(),用于获取/设置合约变 量name。合约内容如下: 部署HelloWorld合约 为了方便用户快速体验,HelloWorld合约已经内置于控制台中,位于控制台 目录下contracts/solidity/HelloWorld World!"; } function get()constant returns(string) { return name; } function set(string n) { name = n; } } # 在控制台输入以下指令 部署成功则返回合约地址 [group:1]> deploy HelloWorld contract 查看当前块高,块高不变,因为get接口不更改账本状态 [group:1]> getBlockNumber 1 # 调用set设置name [group:1]> call HelloWorld 0xb3c223fc0bf6646959f254ac4e4a7e355b50a344 set "Hello, FISCO BCOS" 0x21dca087cb3e44f44f9b882071ec6ecfcb50 码力 | 1227 页 | 10.79 MB | 1 年前3
FISCO BCOS 2.2.0 中文文档"Build Type":"Linux/clang/Debug", 部署及调用HelloWorld合约 HelloWorld合约 HelloWorld合约提供两个接口,分别是get()和set(),用于获取/设置合约变 量name。合约内容如下: "FISCO-BCOS Version":"2.0.0", "Git Branch":"master", "Git Commit sol,参考下面命令部署即可。 调用HelloWorld合约 注: 1. 部署合约还可以通过deployByCNS命令,可以指定部署的合约版本号,使 用方式参考这里。 function set(string n) { name = n; } } # 在控制台输入以下指令 部署成功则返回合约地址 [group:1]> deploy HelloWorld contract 查看当前块高,块高不变,因为get接口不更改账本状态 [group:1]> getBlockNumber 1 # 调用set设置name [group:1]> call HelloWorld 0xb3c223fc0bf6646959f254ac4e4a7e355b50a344 set "Hello, FISCO BCOS" 0x21dca087cb3e44f44f9b882071ec6ecfcb50 码力 | 1156 页 | 10.03 MB | 1 年前3
共 841 条
- 1
- 2
- 3
- 4
- 5
- 6
- 85













