社区
关东升的课程社区_NO_2
2019年全国计算机等级考试二级——Python二级考前辅导
帖子详情
2.5基本输入输出函数
码农老关【关东升】
2023-01-12 13:54:04
课时名称
课时知识点
2.5基本输入输出函数
2.5基本输入输出函数
...全文
32
回复
打赏
收藏
2.5基本输入输出函数
课时名称课时知识点2.5基本输入输出函数2.5基本输入输出函数
复制链接
扫一扫
分享
转发到动态
举报
AI
作业
写回复
配置赞助广告
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
(推荐)Win32 API大全
作为Microsoft 32位平台的应用程序编程接口, Win32 API是从事Windows应用程序开发所必备的。 首先对Win32 API
函数
做完整的概述;然后收录五大类
函数
: 窗口管理、图形设备接口、系统服务、国际特性以及网络服务; 在附录部分,讲解如何在Visual Basic和Delphi中对其调用。 本书是从事Windows应用程序开发的软件工程师的必备参考手册。 控件与消息
函数
共91个
函数
硬件与系统
函数
共98个
函数
设备场景
函数
共73个
函数
绘图
函数
共105个
函数
位图、图标和光栅运算
函数
共39个
函数
菜单
函数
共37个
函数
文本和字体
函数
共41个
函数
打印
函数
共66个
函数
文件处理
函数
共118个
函数
进程和线程
函数
共40个
函数
Windows消息
函数
共11个
函数
网络
函数
共14个
函数
目 录 第一章 Win32 API概论…………………………………………………………………………1 1.1 为什么使用Win32 API …………………………………………………………………1 1.2 Win32 API简介 …………………………………………………………………………1 1.3 综述………………………………………………………………………………………11 第二章 窗口管理
函数
(Windows Control Function) ……………………………………13 2.1 易用特性
函数
(Accessibility Features)…………………………………………13 2.2 按钮
函数
(Button)……………………………………………………………………20 2.3 插入标记(^)
函数
(Caret)…………………………………………………………21 2.4 组合框
函数
(Combo box) ……………………………………………………………24
2.5
通用对话框
函数
(Common Dialog Box) ……………………………………………25 2.6 标
函数
(Cursor)………………………………………………………………………36 2.7 对话框
函数
(Dialog Box)……………………………………………………………40 2.8 编辑控制
函数
(Edit Control)………………………………………………………54 2.9 图标
函数
(Icon)………………………………………………………………………54 2.10 键盘加速器
函数
(Keyboard Accelerator)……………………………………… 61 2.11 键盘输入
函数
(Keyboard InPut) …………………………………………………63 2.12 列表框
函数
(List box) ……………………………………………………………75 2.13 菜单
函数
(Menu) ……………………………………………………………………76 2.14 消息和消息队列
函数
(Message and Message Queue)……………………………90 2.15 鼠标输入
函数
(Mouse Input) ……………………………………………………100 2.16 多文档接口
函数
(Multiple Document Interface) ……………………………103 2.17 资源
函数
(Resource)………………………………………………………………105 2.18 滚动条
函数
(Scroll Bar)…………………………………………………………113 2.19 窗口
函数
(Window)…………………………………………………………………119 2.20 窗口类
函数
(Window Class)………………………………………………………144 2.21 窗口过程
函数
(Window Procedure)………………………………………………150 2.22 窗口属性
函数
(Window Property) ………………………………………………152 第三章 图形设备接口
函数
(Graphic Device Interface Function) …………………155 3.1 位图
函数
(Bitmap) …………………………………………………………………155 3.2 笔刷
函数
(Brush)……………………………………………………………………171 3.3 剪切
函数
(Clipping) ………………………………………………………………176 3.4 颜色
函数
(Color)……………………………………………………………………179 3.5 坐标空间与变换
函数
(Coordinate Space Transformation)……………………186 3.6 设备环境
函数
(Device Context) …………………………………………………195 3.7 填充形态
函数
(Filled shape) ……………………………………………………211 3.8 字体和正文
函数
(Font and Text)…………………………………………………215 3.9 ICM 2.0
函数
…………………………………………………………………………238 3.10 线段和曲线
函数
(Line and Curve)………………………………………………295 3.11 图元文件
函数
(Metafile)…………………………………………………………300 3.12 多显示器
函数
(Multiple Display Monitors) …………………………………311 3.13 绘图
函数
和画图
函数
(Painting and Drawing)…………………………………313 3.14 路径
函数
(Path)……………………………………………………………………328 3.15 画笔
函数
(Pen) ……………………………………………………………………332 3.16 打印及打印假脱机程序
函数
(Printing and Print Spooler)…………………334 3.17 矩形
函数
(Rectangle) ……………………………………………………………371 3.18 区域
函数
(Region)…………………………………………………………………374 第四章 系统服务
函数
(System Service Function) ……………………………………383 4.1 访问控制
函数
(Access Control) …………………………………………………383 4.2 原子
函数
(Atom) ……………………………………………………………………406 4.3 客户/服务器访问控制
函数
(Client/Server Access Control) ………………409 4.4 剪贴板
函数
(Clipboard)……………………………………………………………431 4.5 通信
函数
(Communication)…………………………………………………………436 4.6 控制台
函数
(Console)………………………………………………………………444 4.7 数据解压库
函数
(Data Decompression Library) ………………………………463 4.8 调试
函数
(Debugging)………………………………………………………………466 4.9 设备
输入输出
函数
(Device Input and Output)…………………………………472 4.10 动态数据交换
函数
(Dynamic Data Exchange) …………………………………474 4.11 动态数据交换管理
函数
(Dynamic Data Exchange Management)………………476 4.12 动态链接库
函数
(Dynamic-Link Library)………………………………………489 4.13 错误
函数
(Error) …………………………………………………………………496 4.14 事件日志
函数
(Event Logging) …………………………………………………499 4.15 文件
函数
(File)……………………………………………………………………503 4.16 文件安装库
函数
(File Installation Library) ………………………………542 4.17 文件映射
函数
(File Mapping)……………………………………………………546 4.18 文件系统
函数
File System)………………………………………………………551 4.19 句柄和对象
函数
(Handle and Object)………………………………………………556 4.20 挂钩
函数
(Hook)………………………………………………………………………560 4.21 ImageHlp
函数
…………………………………………………………………………572 4.22 大整数操作
函数
(Iarge Integer Operations)……………………………………594 4.23 低层访问控制
函数
(Low-Level Access Control)………………………………596 4.24 LSAPI
函数
…………………………………………………………………………617 4.25 邮槽
函数
(Mailslot)………………………………………………………………622 4.26 内存管理
函数
(Memory Management) ……………………………………………623 4.27 管道
函数
(Pipe) …………………………………………………………………655 4.28 电源管理
函数
(Power Management) …………………………………………… 663 4.29 进程和线程
函数
(Process and Thread)…………………………………………666 4.30 注册表
函数
(Registry)……………………………………………………………700 4.31 字符串操作
函数
(String Manipulation)……………………………………… 724 4.32 结构化异常处理
函数
(Structured Exception Handling) ……………………742 4.33 同步
函数
(Synchronization) ……………………………………………………745 4.34 系统信息
函数
(System Information)……………………………………………766 4.35 系统消息
函数
(System Message)…………………………………………………780 4.36 系统关机
函数
(System Shutdown) ………………………………………………781 4.37 磁带备份
函数
(Tape Backup) ……………………………………………………783 4.38 时间
函数
(Time)……………………………………………………………………789 4.39 计时器
函数
(Timer) ………………………………………………………………795 4.40 工具帮助
函数
(Tool Help) ………………………………………………………796 4.41 窗口站和桌面
函数
(Window Station and Desktop)……………………………799 4.42 Windows NT 4.0访问控制
函数
(Window NT 4.0 Access-Control)……………808 4.43 WinTrust
函数
(WinTrust)…………………………………………………………814 第五章 国际特性
函数
(International Peatures Punction)时性…………………………815 5.1 输入方法编辑
函数
(Input Method Editor)…………………………………………815 5.2 国家语言支持
函数
(National Language Support)………………………………… 828 5.3 Unicode和字符集
函数
(Unicode and Character Set)……………………………… 843 第六章 网络服务
函数
(Networding Service Function)……………………………………849 6.1 数据链路控制
函数
(DLC)………………………………………………………………849 6.2 网络
函数
(Net)…………………………………………………………………………849 6.3 NetBIOS
函数
……………………………………………………………………………896 6.4 网络DDE
函数
(Networking DDE)……………………………………………………897 6.5 RAS服务器管理
函数
(RAS Server Administration)………………………………901 6.6 远程访问服务
函数
(Remote Access Administration)………………………………910 6.7 服务
函数
(Service)……………………………………………………………………929 6.8 Windows网络
函数
(Windows Networking)……………………………………………930 附录1 如何在VB中调用DLL API ……………………………………………………………945 1 DLL API的声明……………………………………………………………………………945 2 DLL API的调用……………………………………………………………………………947 附录2 在Delphi中直接调用Windows API…………………………………………………953
The C Programming Language 第二版 英文版
The C programming Language 第二版英文版 內容列表 Table of Contents Preface.......................................................... Preface to the first edition..................................... Introduction..................................................... Chapter 1 - A Tutorial Introduction.............................. 1.1 Getting Started................................ 1.2 Variables and Arithmetic Expressions........... 1.3 The for statement.............................. 1.4 Symbolic Constants............................. 1.5 Character Input and Output..................... 1.5.1 File Copying.......................... 1.5.2 Character Counting.................... 1.5.3 Line Counting......................... 1.5.4 Word Counting......................... 1.6 Arrays......................................... 1.7 Functions...................................... 1.8 Arguments - Call by Value...................... 1.9 Character Arrays............................... 1.10 External Variables and Scope.................. Chapter 2 - Types, Operators and Expressions..................... 2.1 Variable Names................................. 2.2 Data Types and Sizes........................... 2.3 Constants...................................... 2.4 Declarations...................................
2.5
Arithmetic Operators........................... 2.6 Relational and Logical Operators............... 2.7 Type Conversions............................... 2.8 Increment and Decrement Operators.............. 2.9 Bitwise Operators.............................. 2.10 Assignment Operators and Expressions.......... 2.11 Conditional Expressions....................... 2.12 Precedence and Order of Evaluation............ Chapter 3 - Control Flow......................................... 3.1 Statements and Blocks.......................... 3.2 If-Else........................................ 3.3 Else-If........................................ 3.4 Switch......................................... 3.5 Loops - While and For.......................... 3.6 Loops - Do-While............................... 3.7 Break and Continue............................. 3.8 Goto and labels................................ Chapter 4 - Functions and Program Structure...................... 4.1 Basics of Functions............................ 4.2 Functions Returning Non-integers............... 4.3 External Variables............................. 4.4 Scope Rules.................................... 4.5 Header Files................................... 4.6 Static Variables................................ 4.7 Register Variables.............................. 4.8 Block Structure................................. 4.9 Initialization.................................. 4.10 Recursion...................................... 4.11 The C Preprocessor............................. 4.11.1 File Inclusion........................ 4.11.2 Macro Substitution.................... 4.11.3 Conditional Inclusion................. Chapter 5 - Pointers and Arrays.................................. 5.1 Pointers and Addresses......................... 5.2 Pointers and Function Arguments................ 5.3 Pointers and Arrays............................ 5.4 Address Arithmetic............................. 5.5 Character Pointers and Functions............... 5.6 Pointer Arrays; Pointers to Pointers........... 5.7 Multi-dimensional Arrays....................... 5.8 Initialization of Pointer Arrays............... 5.9 Pointers vs. Multi-dimensional Arrays.......... 5.10 Command-line Arguments........................ 5.11 Pointers to Functions......................... 5.12 Complicated Declarations...................... Chapter 6 - Structures........................................... 6.1 Basics of Structures........................... 6.2 Structures and Functions....................... 6.3 Arrays of Structures........................... 6.4 Pointers to Structures......................... 6.5 Self-referential Structures.................... 6.6 Table Lookup................................... 6.7 Typedef........................................ 6.8 Unions......................................... 6.9 Bit-fields..................................... Chapter 7 - Input and Output..................................... 7.1 Standard Input and Output....................... 7.2 Formatted Output - printf....................... 7.3 Variable-length Argument Lists.................. 7.4 Formatted Input - Scanf......................... 7.5 File Access..................................... 7.6 Error Handling - Stderr and Exit................ 7.7 Line Input and Output........................... 7.8 Miscellaneous Functions......................... 7.8.1 String Operations...................... 7.8.2 Character Class Testing and Conversion. 7.8.3 Ungetc................................. 7.8.4 Command Execution...................... 7.8.5 Storage Management..................... 7.8.6 Mathematical Functions................. 7.8.7 Random Number generation............... Chapter 8 - The UNIX System Interface............................ 8.1 File Descriptors............................... 8.2 Low Level I/O - Read and Write................. 8.3 Open, Creat, Close, Unlink..................... 8.4 Random Access - Lseek.......................... 8.5 Example - An implementation of Fopen and Getc.. 8.6 Example - Listing Directories.................. 8.7 Example - A Storage Allocator.................. Appendix A - Reference Manual.................................... A.1 Introduction................................... A.2 Lexical Conventions............................ A.2.1 Tokens................................ A.2.2 Comments.............................. A.2.3 Identifiers........................... A.2.4 Keywords.............................. A.
2.5
Constants............................. A.2.6 String Literals....................... A.3 Syntax Notation................................ A.4 Meaning of Identifiers......................... A.4.1 Storage Class......................... A.4.2 Basic Types........................... A.4.3 Derived types......................... A.4.4 Type Qualifiers....................... A.5 Objects and Lvalues............................ A.6 Conversions.................................... A.6.1 Integral Promotion.................... A.6.2 Integral Conversions.................. A.6.3 Integer and Floating.................. A.6.4 Floating Types........................ A.6.5 Arithmetic Conversions................ A.6.6 Pointers and Integers................. A.6.7 Void.................................. A.6.8 Pointers to Void...................... A.7 Expressions.................................... A.7.1 Pointer Conversion.................... A.7.2 Primary Expressions................... A.7.3 Postfix Expressions................... A.7.4 Unary Operators....................... A.7.5 Casts................................. A.7.6 Multiplicative Operators.............. A.7.7 Additive Operators.................... A.7.8 Shift Operators....................... A.7.9 Relational Operators.................. A.7.10 Equality Operators................... A.7.11 Bitwise AND Operator................. A.7.12 Bitwise Exclusive OR Operator........ A.7.13 Bitwise Inclusive OR Operator........ A.7.14 Logical AND Operator................. A.7.15 Logical OR Operator.................. A.7.16 Conditional Operator................. A.7.17 Assignment Expressions............... A.7.18 Comma Operator.......................... A.7.19 Constant Expressions.................... A.8 Declarations..................................... A.8.1 Storage Class Specifiers................. A.8.2 Type Specifiers.......................... A.8.3 Structure and Union Declarations......... A.8.4 Enumerations............................. A.8.5 Declarators.............................. A.8.6 Meaning of Declarators................... A.8.7 Initialization........................... A.8.8 Type names............................... A.8.9 Typedef.................................. A.8.10 Type Equivalence........................ A.9 Statements....................................... A.9.1 Labeled Statements....................... A.9.2 Expression Statement..................... A.9.3 Compound Statement....................... A.9.4 Selection Statements..................... A.9.5 Iteration Statements..................... A.9.6 Jump statements.......................... A.10 External Declarations........................... A.10.1 Function Definitions.................... A.10.2 External Declarations................... A.11 Scope and Linkage............................... A.11.1 Lexical Scope........................... A.11.2 Linkage................................. A.12 Preprocessing................................... A.12.1 Trigraph Sequences...................... A.12.2 Line Splicing........................... A.12.3 Macro Definition and Expansion.......... A.12.4 File Inclusion.......................... A.1
2.5
Conditional Compilation................. A.12.6 Line Control............................ A.12.7 Error Generation........................ A.12.8 Pragmas................................. A.12.9 Null directive.......................... A.12.10 Predefined names....................... A.13 Grammar......................................... Appendix B - Standard Library.................................... B.1.1 File Operations................................ B.1.2 Formatted Output......................... B.1.3 Formatted Input.......................... B.1.4 Character Input and Output Functions..... B.1.5 Direct Input and Output Functions........ B.1.6 File Positioning Functions............... B.1.7 Error Functions.......................... B.2 Character Class Tests: ................. B.3 String Functions: ..................... B.4 Mathematical Functions: ................. B.5 Utility Functions: ....................
UNIX环境高级编程
目 录 译者序 译者简介 前言 第1章 UNIX基础知识 1 1.1 引言 1 1.2 登录 1 1.2.1 登录名 1 1.2.2 shell 1 1.3 文件和目录 2 1.3.1 文件系统 2 1.3.2 文件名 2 1.3.3 路径名 2 1.3.4 工作目录 4 1.3.5 起始目录 4 1.4 输入和输出 5 1.4.1 文件描述符 5 1.4.2 标准输入、标准输出和标准 出错 5 1.4.3 不用缓存的I/O 5 1.4.4 标准I/O 6 1.5 程序和进程 7 1.5.1 程序 7 1.5.2 进程和进程ID 7 1.5.3 进程控制 7 1.6 ANSI C 9 1.6.1
函数
原型 9 1.6.2 类属指针 9 1.6.3 原始系统数据类型 10 1.7 出错处理 10 1.8 用户标识 11 1.8.1 用户ID 11 1.8.2 组ID 12 1.8.3 添加组ID 12 1.9 信号 12 1.10 UNIX时间值 14 1.11 系统调用和库
函数
14 1.12 小结 16 习题 16 第2章 UNIX标准化及实现 17 2.1 引言 17 2.2 UNIX标准化 17 2.2.1 ANSI C 17 2.2.2 IEEE POSIX 18 2.2.3 X/Open XPG3 19 2.2.4 FIPS 19 2.3 UNIX实现 19 2.3.1 SVR4 20 2.3.2 4.3+BSD 20 2.4 标准和实现的关系 21
2.5
限制 21
2.5
.1 ANSI C限制 22
2.5
.2 POSIX限制 22
2.5
.3 XPG3限制 24
2.5
.4 sysconf、pathconf 和fpathconf
函数
24
2.5
.5 FIPS 151-1要求 28
2.5
.6 限制总结 28
2.5
.7 未确定的运行时间限制 29 2.6 功能测试宏 32 2.7
基本
系统数据类型 32 2.8 标准之间的冲突 33 2.9 小结 34 习题 34 第3章 文件I/O 35 3.1 引言 35 3.2 文件描述符 35 3.3 open
函数
35 3.4 creat
函数
37 3.5 close
函数
37 3.6 lseek
函数
38 3.7 read
函数
40 3.8 write
函数
41 3.9 I/O的效率 41 3.10 文件共享 42 3.11 原子操作 45 3.11.1 添加至一个文件 45 3.11.2 创建一个文件 45 3.12 dup和dup2
函数
46 3.13 fcntl
函数
47 3.14 ioctl
函数
50 3.15 /dev/fd 51 3.16 小结 52 习题 52 第4章 文件和目录 54 4.1 引言 54 4.2 stat, fstat和lstat
函数
54 4.3 文件类型 55 4.4 设置-用户-ID和设置-组-ID 57 4.5 文件存取许可权 58 4.6 新文件和目录的所有权 60 4.7 access
函数
60 4.8 umask
函数
62 4.9 chmod和fchmod
函数
63 4.10 粘住位 65 4.11 chown, fchown和 lchown
函数
66 4.12 文件长度 67 4.13 文件截短 68 4.14 文件系统 69 4.15 link, unlink, remove和rename
函数
71 4.16 符号连接 73 4.17 symlink 和readlink
函数
76 4.18 文件的时间 76 4.19 utime
函数
78 4.20 mkdir和rmdir
函数
79 4.21 读目录 80 4.22 chdir, fchdir和getcwd
函数
84 4.23 特殊设备文件 86 4.24 sync和fsync
函数
87 4.25 文件存取许可权位小结 88 4.26 小结 89 习题 89 第5章 标准I/O库 91 5.1 引言 91 5.2 流和FILE对象 91 5.3 标准输入、标准输出和标准出错 91 5.4 缓存 91 5.5 打开流 94 5.6 读和写流 96 5.6.1 输入
函数
96 5.6.2 输出
函数
97 5.7 每次一行I/O 98 5.8 标准I/O的效率 99 5.9 二进制I/O 100 5.10 定位流 102 5.11 格式化I/O 103 5.11.1 格式化输出 103 5.11.2 格式化输入 103 5.12 实现细节 104 5.13 临时文件 105 5.14 标准I/O的替代软件 108 5.15 小结 108 习题 108 第6章 系统数据文件和信息 110 6.1 引言 110 6.2 口令文件 110 6.3 阴影口令 112 6.4 组文件 113 6.5 添加组ID 114 6.6 其他数据文件 115 6.7 登录会计 116 6.8 系统标识 116 6.9 时间和日期例程 117 6.10 小结 121 习题 121 第7章 UNIX进程的环境 122 7.1 引言 122 7.2 main
函数
122 7.3 进程终止 122 7.3.1 exit和_exit
函数
122 7.3.2 atexit
函数
124 7.4 命令行参数 125 7.5 环境表 126 7.6 C程序的存储空间布局 126 7.7 共享库 127 7.8 存储器分配 128 7.9 环境变量 130 7.10 setjmp 和longjmp
函数
132 7.10.1 自动、寄存器和易失变量 134 7.10.2 自动变量的潜在问题 136 7.11 getrlimit 和setrlimit
函数
136 7.12 小结 139 习题 140 第8章 进程控制 141 8.1 引言 141 8.2 进程标识 141 8.3 fork
函数
142 8.4 vfork
函数
145 8.5 exit
函数
147 8.6 wait和waitpid
函数
148 8.7 wait3和wait4
函数
152 8.8 竞态条件 153 8.9 exec
函数
156 8.10 更改用户ID和组ID 160 8.10.1 setreuid 和setregid
函数
162 8.10.2 seteuid和 setegid
函数
163 8.10.3 组ID 163 8.11 解释器文件 164 8.12 system
函数
167 8.13 进程会计 171 8.14 用户标识 175 8.15 进程时间 176 8.16 小结 178 习题 178 第9章 进程关系 180 9.1 引言 180 9.2 终端登录 180 9.2.1 4.3+BSD终端登录 180 9.2.2 SVR4终端登录 182 9.3 网络登录 182 9.3.1 4.3+BSD网络登录 182 9.3.2 SVR4网络登录 183 9.4 进程组 183 9.5 对话期 184 9.6 控制终端 185 9.7 tcgetpgrp 和tcsetpgrp
函数
187 9.8 作业控制 187 9.9 shell执行程序 189 9.10 孤儿进程组 193 9.11 4.3+BSD实现 195 9.12 小结 197 习题 197 第10章 信号 198 10.1 引言 198 10.2 信号的概念 198 10.3 signal
函数
203 10.3.1 程序起动 205 10.3.2 进程创建 206 10.4 不可靠的信号 206 10.5 中断的系统调用 207 10.6 可再入
函数
209 10.7 SIGCLD语义 211 10.8 可靠信号术语和语义 213 10.9 kill和raise
函数
213 10.10 alarm和pause
函数
214 10.11 信号集 219 10.12 sigprocmask
函数
220 10.13 sigpending
函数
222 10.14 sigaction
函数
223 10.15 sigsetjmp 和siglongjmp
函数
226 10.16 sigsuspend
函数
229 10.17 abort
函数
234 10.18 system
函数
235 10.19 sleep
函数
240 10.20 作业控制信号 241 10.21 其他特征 243 10.21.1 信号名字 243 10.21.2 SVR4信号处理程序的附 加参数 244 10.21.3 4.3+BSD信号处理程序的附 加参数 244 10.22 小结 244 习题 244 第11章 终端I/O 246 11.1 引言 246 11.2 综述 246 11.3 特殊输入字符 250 11.4 获得和设置终端属性 254 11.5 终端选择标志 254 11.6 stty命令 258 11.7 波特率
函数
259 11.8 行控制
函数
260 11.9 终端标识 260 11.10 规范方式 263 11.11 非规范方式 266 11.12 终端的窗口大小 270 11.13 termcap, terminfo和 curses 271 11.14 小结 272 习题 272 第12章 高级I/O 273 12.1 引言 273 12.2 非阻塞I/O 273 12.3 记录锁 275 12.3.1 历史 276 12.3.2 fcntl记录锁 276 12.3.3 锁的隐含继承和释放 280 12.3.4 4.3+BSD的实现 281 12.3.5 建议性锁和强制性锁 284 12.4 流 288 12.4.1 流消息 289 12.4.2 putmsg和putpmsg
函数
290 12.4.3 流ioctl操作 291 12.4.4 write至流设备 294 12.4.5 写方式 294 12.4.6 getmsg和getpmsg
函数
294 12.4.7 读方式 295 1
2.5
I/O多路转接 296 1
2.5
.1 select
函数
298 1
2.5
.2 poll
函数
301 12.6 异步I/O 303 12.6.1 SVR4 303 12.6.2 4.3+BSD 303 12.7 readv和writev
函数
304 12.8 readn和writen
函数
306 12.9 存储映射I/O 307 12.10 小结 311 习题 311 第13章 精灵进程 312 13.1 引言 312 13.2 精灵进程的特征 312 13.3 编程规则 313 13.4 出错记录 314 13.4.1 SVR4流log驱动程序 315 13.4.2 4.3+BSD syslog设施 316 13.5 客户机-服务器模型 319 13.6 小结 319 习题 319 第14章 进程间通信 320 14.1 引言 320 14.2 管道 320 14.3 popen和pclose
函数
325 14.4 协同进程 330 14.5 FIFO 333 14.6 系统V IPC 335 14.6.1 标识符和关键字 336 14.6.2 许可权结构 337 14.6.3 结构限制 337 14.6.4 优点和缺点 337 14.7 消息队列 338 14.8 信号量 342 14.9 共享存储 346 14.10 客户机-服务器属性 351 14.11 小结 353 习题 353 第15章 高级进程间通信 355 15.1 引言 355 15.2 流管道 355 15.3 传送文件描述符 358 15.3.1 SVR4 360 15.3.2 4.3BSD 361 15.3.3 4.3+BSD 364 15.4 open服务器第1版 366 15.5 客户机-服务器连接
函数
371 15.5.1 SVR4 372 15.5.2 4.3+BSD 375 15.6 open服务器第2版 378 15.7 小结 385 习题 385 第16章 数据库
函数
库 386 16.1 引言 386 16.2 历史 386 16.3
函数
库 386 16.4 实现概述 388 16.5 集中式或非集中式 390 16.6 并发 391 16.6.1 粗锁 391 16.6.2 细锁 391 16.7 源码 392 16.8 性能 409 16.8.1 单进程的结果 410 16.8.2 多进程的结果 410 16.9 小结 412 习题 412 第17章 与PostScript打印机通信 413 17.1 引言 413 17.2 PostScript通信机制 413 17.3 假脱机打印 415 17.4 源码 417 17.5 小结 434 习题 434 第18章 调制解调器拨号器 435 18.1 引言 435 18.2 历史 435 18.3 程序设计 436 18.4 数据文件 437 18.5 服务器设计 439 18.6 服务器源码 439 18.7 客户机设计 463 18.7.1 终端行规程 463 18.7.2 一个进程还是两个进程 464 18.8 客户机源码 465 18.9 小结 474 习题 474 第19章 伪终端 476 19.1 引言 476 19.2 概述 476 19.2.1 网络登录服务器 477 19.2.2 script程序 478 19.2.3 expect程序 479 19.2.4 运行协同进程 479 19.
2.5
观看长时间运行程序的输出 479 19.3 打开伪终端设备 480 19.3.1 SVR4 481 19.3.2 4.3+BSD 482 19.4 pty_fork
函数
484 19.5 pty程序 486 19.6 使用pty程序 489 19.6.1 utmp文件 489 19.6.2 作业控制交互 489 19.6.3 检查长时间运行程序的输出 491 19.6.4 script程序 491 19.6.5 运行协同进程 492 19.6.6 用非交互模式驱动交互式 程序 492 19.7 其他特性 494 19.7.1 打包模式 494 19.7.2 远程模式 494 19.7.3 窗口大小变化 495 19.7.4 信号发生 495 19.8 小结 495 习题 495 附录A
函数
原型 497 附录B 其他源代码 512 附录C 习题答案 518 参考书目 536
C语言
基本
输入输出
函数
1 几组常见的
输入输出
函数
在stdio.h头文件中内置了几种
输入输出
函数
,如下列出: printf 与 scanf getchar 与 putchar gets 与 puts 相比之下 printf 与 scanf的功能最为强大,但操作稍显复杂,后两种则功能简单,但针对性较强。2 printf
函数
功能:按照规定格式输出指定数据2.1.一般形式:如图 格式控制:由“%”后跟格式字符组成。将输出数据转
【C语言】
输入输出
函数
一、printf
函数
(占位符、输出格式)和scanf
函数
(返回值、输入缓冲区、赋值忽略符)二~三、字符
输入输出
函数
(putchar、getchar)和字符串
输入输出
函数
(puts、gets)注:
输入输出
库
函数
的头文件都是 stdio.h。
关东升的课程社区_NO_2
1
社区成员
565
社区内容
发帖
与我相关
我的任务
关东升的课程社区_NO_2
一个20年的老程序员、老师、作家。 熟悉Java、Kotlin、Python、iOS、Android、游戏开发。参与设计和开发北京市公交一卡通百亿级大型项目,金融系统微博等移动客户端项目。著有《iOS开发指南》等40多部图书。
复制链接
扫一扫
分享
社区描述
一个20年的老程序员、老师、作家。 熟悉Java、Kotlin、Python、iOS、Android、游戏开发。参与设计和开发北京市公交一卡通百亿级大型项目,金融系统微博等移动客户端项目。著有《iOS开发指南》等40多部图书。
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章