2024年10月21日 13:10

This commit is contained in:
许大仙 2024-10-21 05:10:16 +00:00
parent 064214755f
commit 799ca02c75
3 changed files with 16 additions and 14 deletions

View File

@ -161,3 +161,5 @@
> * ① 当我们使用 `printf` 函数输出数据的时候,数据并不会立即就写出到输出设备(如:屏幕等)。而是先将其放置到 `stdout 缓冲区`中,然后在满足条件的时候,再从缓冲区中刷新到输出设备。 > * ① 当我们使用 `printf` 函数输出数据的时候,数据并不会立即就写出到输出设备(如:屏幕等)。而是先将其放置到 `stdout 缓冲区`中,然后在满足条件的时候,再从缓冲区中刷新到输出设备。
> * ② 当我们使用 `scanf` 函数输入数据的时候,数据并不会立即就从输入设备中读取(如:键盘等)。而是先将其放置到 `stdin 缓冲区`中,然后在满足条件的时候,再从缓冲区中加载数据。 > * ② 当我们使用 `scanf` 函数输入数据的时候,数据并不会立即就从输入设备中读取(如:键盘等)。而是先将其放置到 `stdin 缓冲区`中,然后在满足条件的时候,再从缓冲区中加载数据。
### 1.3.3 缓冲区的好处

24
package-lock.json generated
View File

@ -9,7 +9,7 @@
"version": "1.0.0", "version": "1.0.0",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@theojs/lumen": "^3.5.1", "@theojs/lumen": "^3.5.2",
"dayjs": "1.11.13", "dayjs": "1.11.13",
"dotenv": "^16.4.5", "dotenv": "^16.4.5",
"font-pingfang-sc-font-weight-improved": "^1.0.7", "font-pingfang-sc-font-weight-improved": "^1.0.7",
@ -18,7 +18,7 @@
"vue-router": "^4.4.5" "vue-router": "^4.4.5"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^22.7.5", "@types/node": "^22.7.7",
"canvas-confetti": "^1.9.3", "canvas-confetti": "^1.9.3",
"markdown-it-mathjax3": "^4.3.2", "markdown-it-mathjax3": "^4.3.2",
"vitepress": "^1.4.1" "vitepress": "^1.4.1"
@ -1507,14 +1507,14 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/@theojs/lumen": { "node_modules/@theojs/lumen": {
"version": "3.5.1", "version": "3.5.2",
"resolved": "https://registry.npmmirror.com/@theojs/lumen/-/lumen-3.5.1.tgz", "resolved": "https://registry.npmmirror.com/@theojs/lumen/-/lumen-3.5.2.tgz",
"integrity": "sha512-tJvNldoEzl2Q1Pqg8Q/BoijpYfhQNiyeV5ww2u9myrEvMMMD6mUVRie1ZnqBleCvEQFoO6UZ8sLnvm7TsBXqzQ==", "integrity": "sha512-Hop8WHXWqstNWTZwyIe8YDha7JYQNLwL7pQj67ZDX9GIL+jfjUiCiUQItArbDsn93UFwAfjvhjUnhpDK4ixtqw==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@fortawesome/fontawesome-free": "^6.6.0", "@fortawesome/fontawesome-free": "^6.6.0",
"bumpp": "^9.7.1", "bumpp": "^9.7.1",
"sass": "^1.79.5", "sass": "^1.80.3",
"twikoo": "^1.6.39", "twikoo": "^1.6.39",
"vue": "^3.5.12" "vue": "^3.5.12"
}, },
@ -1572,9 +1572,9 @@
"dev": true "dev": true
}, },
"node_modules/@types/node": { "node_modules/@types/node": {
"version": "22.7.5", "version": "22.7.7",
"resolved": "https://registry.npmmirror.com/@types/node/-/node-22.7.5.tgz", "resolved": "https://registry.npmmirror.com/@types/node/-/node-22.7.7.tgz",
"integrity": "sha512-jML7s2NAzMWc//QSJ1a3prpk78cOPchGvXJsC3C6R6PSMoooztvRVQEz89gmBTBY1SPMaqo5teB4uNHPdetShQ==", "integrity": "sha512-SRxCrrg9CL/y54aiMCG3edPKdprgMVGDXjA3gB8UmmBW5TcXzRUYAh8EWzTnSJFAd1rgImPELza+A3bJ+qxz8Q==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
@ -3745,9 +3745,9 @@
} }
}, },
"node_modules/sass": { "node_modules/sass": {
"version": "1.79.5", "version": "1.80.3",
"resolved": "https://registry.npmmirror.com/sass/-/sass-1.79.5.tgz", "resolved": "https://registry.npmmirror.com/sass/-/sass-1.80.3.tgz",
"integrity": "sha512-W1h5kp6bdhqFh2tk3DsI771MoEJjvrSY/2ihJRJS4pjIyfJCw0nTsxqhnrUzaLMOJjFchj8rOvraI/YUVjtx5g==", "integrity": "sha512-ptDWyVmDMVielpz/oWy3YP3nfs7LpJTHIJZboMVs8GEC9eUmtZTZhMHlTW98wY4aEorDfjN38+Wr/XjskFWcfA==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@parcel/watcher": "^2.4.1", "@parcel/watcher": "^2.4.1",

View File

@ -12,13 +12,13 @@
"author": "", "author": "",
"license": "ISC", "license": "ISC",
"devDependencies": { "devDependencies": {
"@types/node": "^22.7.5", "@types/node": "^22.7.7",
"canvas-confetti": "^1.9.3", "canvas-confetti": "^1.9.3",
"markdown-it-mathjax3": "^4.3.2", "markdown-it-mathjax3": "^4.3.2",
"vitepress": "^1.4.1" "vitepress": "^1.4.1"
}, },
"dependencies": { "dependencies": {
"@theojs/lumen": "^3.5.1", "@theojs/lumen": "^3.5.2",
"dayjs": "1.11.13", "dayjs": "1.11.13",
"dotenv": "^16.4.5", "dotenv": "^16.4.5",
"font-pingfang-sc-font-weight-improved": "^1.0.7", "font-pingfang-sc-font-weight-improved": "^1.0.7",