##
C++ 系列课:字符与
字符串
by 小彭老师 (@archibate)
课件 & 代码:https://github.com/parallel101/course
上期回顾:https://www.bilibili.com/video/BV1m34y157wb
## 课程安排
1. vector 容器初体验 & 迭代器入门 (BV1qF411T7sd)
2. 你所不知道的 的爱恨纠葛(本期)
4. 万能的 map 容器全家桶及其妙用举例
5. 函子 functor 与 lambda 表达式知多少
6. 通过实战案例来学习 STL 算法库
7.
C++ 标准输入输出流 &
字符串格式化
8. traits 技术,用户自定义迭代器与算法
9. allocator,内存管理与对象生命周期
## ASCII 码
第1章
## 计算机如何表达字符
USASCII 0011
35 | 23 | # | 0100 0011 | 67 | 43 | C | 0110 0011 | 99 | 63 | c | | 0010 0100 | 36 | 24 | $ | 0100 01 0 码力 |
162 页 |
40.20 MB
| 2 年前 3 作数纤 符埋
ooo oo ooooo oooooooooooo
数组和字符串
王晓东
wangxiaodongQouc.edu.cn
中国海洋大学
October 16, 2020
参考书目
1. 陈国君等编著,Java 程序设计基础《第 5 版) , 清华大学日 类,掌握操
作数组相关方法
3. 掌握 Java 有 的概念,字符串与数组的关系;学会
String 类 闻符串操作方法
大网 数组的概念
和 Ooo
数组的概念
一维数组
二维数组
宝
三
-维数组
ooo
维数组
ooooo
字符串
oooooooooooo
大网 数组的概念 维数组 维数组 字符串
O e@oo ooo ooooo oooooooooooo
接下来…
< 0 码力 |
33 页 |
620.46 KB
| 2 年前 3 ## C HANDBOOK
# Table of Contents
Preface
The C Handbook
Conclusion
## Preface
The C Handbook follows the 80/20 rule: learn in 20% of the time the 80% of a topic.
In particular, the goal is to get get you up to speed quickly with C.
This book is written by Flavio. I publish programming tutorials on my blog flaviocopes.com and I organize a yearly bootcamp at bootcamp.dev.
You can reach me on Twitter Twitter @flaviocopes.
Enjoy!
## The C Handbook
• 1. Introduction to C
• 2. Variables and types
• 2.1. Integer numbers
• 2.2. Unsigned integers
• 2.3. The problem with overflow
0 码力 |
60 页 |
908.68 KB
| 2 年前 3 This is C++
JON KALB
20
24
September 15 - 20
This is

## WHAT'S YOUR SUPERPOWER?
## Uncompromising performance [Image](/uploads/documents/3/a/8/c/3a8cc028dde23f7d3437878d5b9a4de6/p5_1.jpg)

This is

## its a conspiracy man
## Memory Model
## I mportant Question
## Does the processor executes the program you long | 27 | # 0x1b |
| .LCPI1_7: |
| .long | 28 | # 0x1c |
| .long | 29 | # 0x1d |
| .long | 30 | # 0x1e |
0 码力 |
112 页 |
5.17 MB
| 1 年前 3 ## PHP基本语法 —变量、数组、字符串 杨亮
## Web基本流程
请求页面
对应文件
获取数据
PC Mobile
HTTP 请求
html css
javascript
服务器 (Apache)
(IIS)
html css
javascript
后端脚本 (PHP) (JSP) (ASP)
数据库(MySQL)(Oracle)(Access)
返回页面 只能存放标量
- 布尔、整形、浮点和字符串
1
## 运算符
• 与C语言的基本一致(别说都忘了)
echo $z;
## 数组
• 数值索引数组-自动索引
• array(val1,val2,val3,...)
• 混合类型
• 下表从0开始
- 自定义所以数组-人为指定索引
- 任何字符串和整数值都可以做下标
• 下标0和'0'是不同的
• 数组运算符
• ‘+’合并两个数组,如果有索引冲突,保留前者
1 0 1 2 3 4 5 6 7 8 0 码力 |
25 页 |
587.00 KB
| 2 年前 3 ## COMPOSABLE C++

## BEN DEANE / @ben_deane
CPPCON 2021
## I N THIS TALK
1. Composability defined
2. Composable types prioritization
request → A f → B f → C f → unhandled
t → t → t → t → handled
## CASE STUDY: LOGGING
## From "Easy to Use, Hard to Misuse: Declarative Style in C++" (CppCon 2018)
struct log_sink ments/c/3/3/1/c331a812ea25eaf59e92bd9bda4ff4dd/p42_1.jpg)
alignment
cohesion
## MORE BEHAVIOURS
We can arbitrarily layer more behaviours into the calculation.

Timur Doumler
CppCon
18 September 2024

The Swan, The Pike, and The Crab – Fable by Ivan Krylov, 1814
## Proposal: add contract assertions to C++
Widget getWidget (index i)
pre (i > 0) // precondition assertion
## Proposal: add contract assertions to C++
// precondition assertion
// postcondition assertion
## Proposal: add contract assertions to C++
Widget getWidget (index i)
pre (i > 0) // precondition 0 码力 |
181 页 |
4.44 MB
| 1 年前 3 6ac042f881af6d8a666/p1_2.jpg)
## Emeritus participant in C++ standardization
• Written ~175 papers for WG21, proposing such now-standard C++ library features as gcd/lcm, cbegin/cend, common_type, and Project Editor for the Int'l Standard on Mathematical Special Functions in C++ (ISO/IEC 29124), incorporated into ; M.S., Ph.D. (computer science).
• Professional programmer for over 60 years, programming in C++ since 1982.
Experienced in industry, academia, consulting, and research:
![Image](/uploads/docu 0 码力 |
15 页 |
3.03 MB
| 1 年前 3 ## +21
## Exceptional C++
## VICTOR CIURA 20 21 October 24-29
## Exceptional C++
CppCon 2021
October 25 $ ^{th} $
## Abstract
When writing code we usually focus our attention on the happy paths - Zoom
## Q & A
## Exceptional C++
When writing code we usually focus our attention on the happy paths - that's where the interesting stuff happens
## Exceptional C++
But there are also plenty of of exciting things happening on the error handling flow, too
## Exceptional C++
Although not universally loved, exceptions are a powerful mechanism of maneuvering execution on the unhappy path
##### Exceptions 0 码力 |
113 页 |
24.39 MB
| 1 年前 3
|