Compare commits

...

2 Commits

Author SHA1 Message Date
bb68a0323d vault backup: 2026-01-23 16:41:34 2026-01-23 16:41:34 +08:00
d3bcc29692 vault backup: 2026-01-23 16:36:33 2026-01-23 16:36:33 +08:00
2 changed files with 28 additions and 13 deletions

View File

@@ -40,14 +40,15 @@
"id": "fa1d4d0680240de1", "id": "fa1d4d0680240de1",
"type": "leaf", "type": "leaf",
"state": { "state": {
"type": "webviewer", "type": "markdown",
"state": { "state": {
"url": "https://share.note.youdao.com/ynoteshare/index.html?id=a66c778ce8c6e4ee03608e493e59ba7a&type=notebook&_time=1768473840238#/WEB83f172c217a3d791e8be381ba55f47a9", "file": "Collection/连~都忘记了的C语言小知识.md",
"title": "CQ2605", "mode": "source",
"mode": "webview" "source": false,
"backlinks": false
}, },
"icon": "globe-2", "icon": "lucide-file",
"title": "CQ2605" "title": "连~都忘记了的C语言小知识"
} }
}, },
{ {
@@ -56,17 +57,17 @@
"state": { "state": {
"type": "markdown", "type": "markdown",
"state": { "state": {
"file": "Diary/2026-1/2026-1-23 周五.md", "file": "Collection/连~都忘记了的C语言小知识.md",
"mode": "source", "mode": "source",
"source": false, "source": false,
"backlinks": false "backlinks": false
}, },
"icon": "lucide-file", "icon": "lucide-file",
"title": "2026-1-23 周五" "title": "连~都忘记了的C语言小知识"
} }
} }
], ],
"currentTab": 2 "currentTab": 3
} }
], ],
"direction": "vertical" "direction": "vertical"
@@ -133,12 +134,13 @@
"state": { "state": {
"type": "outline", "type": "outline",
"state": { "state": {
"file": "Collection/连~都忘记了的C语言小知识.md",
"followCursor": true, "followCursor": true,
"showSearch": false, "showSearch": false,
"searchQuery": "" "searchQuery": ""
}, },
"icon": "lucide-list", "icon": "lucide-list",
"title": "大纲" "title": "连~都忘记了的C语言小知识 的大纲"
} }
}, },
{ {
@@ -290,10 +292,11 @@
"remotely-save:Remotely Save": false "remotely-save:Remotely Save": false
} }
}, },
"active": "fa1d4d0680240de1", "active": "6bbdb6c9df9a2d8f",
"lastOpenFiles": [ "lastOpenFiles": [
"YueQian/相关网站.md",
"Diary/2026-1/2026-1-23 周五.md", "Diary/2026-1/2026-1-23 周五.md",
"Collection/连~都忘记了的C语言小知识.md",
"YueQian/相关网站.md",
"README.md", "README.md",
"Excalidraw/Drawing 20260122.md", "Excalidraw/Drawing 20260122.md",
"test.md", "test.md",
@@ -334,7 +337,6 @@
"Collection/YoudaoyunNotes/02C语言/02-C语言入门.md", "Collection/YoudaoyunNotes/02C语言/02-C语言入门.md",
"Collection/YoudaoyunNotes/02C语言/03-数据类型及IO流.md", "Collection/YoudaoyunNotes/02C语言/03-数据类型及IO流.md",
"Page/友情链接.md", "Page/友情链接.md",
"Page/关于与声明.md",
"Page", "Page",
"Collection/YoudaoyunNotes/02C语言/attachments/WEBRESOURCE40a76a7d230733292ec04717f3f6f254编程规范.pdf", "Collection/YoudaoyunNotes/02C语言/attachments/WEBRESOURCE40a76a7d230733292ec04717f3f6f254编程规范.pdf",
"Collection/YoudaoyunNotes/02C语言/attachments/WEBRESOURCEf8f411dd54c53da227a89fc7031bb0c7terminal_colors.h", "Collection/YoudaoyunNotes/02C语言/attachments/WEBRESOURCEf8f411dd54c53da227a89fc7031bb0c7terminal_colors.h",

View File

@@ -0,0 +1,13 @@
---
tags:
- empty
aliases: empty
日期: 2026/1/23
---
- 字符转数字要 `-'0'`
```c
char arr[10];
for(int i = 0;i < strlen(arr);i++)
num = num * 10 + arr[i] - '0';
```
-