资源简介
英文版+源码,至于内容就不用多介绍了!

代码片段和文件信息
/* Program 10.1 Exercising formatted input */
#include
#include /* For wscanf() version */
const size_t SIZE = 20; /* Max characters in a word */
int main(void)
{
int value_count = 0; /* Count of input values read */
float fp1 = 0.0; /* Floating-point value read */
int i = 0; /* First integer read */
int j = 0; /* Second integer read */
char word1[SIZE] = “ “; /* First string read */
char word2[SIZE] = “ “; /* Second string read */
int byte_count = 0; /* Count of input bytes read */
value_count = scanf(“%f %d %d %[abcdefghijklmnopqrstuvwxyz] %*1d %s%n“
&fp1 &i &j word1 word2 &byte_count);
/* Alternative 1
value_count = scanf(“%4f %d %d %*d %[abcdefghijklmnopqrstuvwxyz] %*1d %[^o]%n“
&fp1 &i &j word1 word2 &byte_count);
*/
/* Alternative 2
value_count = scanf(“%4f %4d %d %*d %[abcdefghijklmnopqrstuvwxyz] %*1d %[^o]%n“
&fp1 &i &j word1 word2 &byte_count);
*/
/* You could also use wscanf() to read the data reading the two strings
as wide-character strings.
wchar_t wword1[SIZE] = “ “;
wchar_t wword2[SIZE] = “ “;
value_count = wscanf(L“%f %d %d %l[abcdefghijklmnopqrstuvwxyz] %*1d %ls%n“
&fp1 &i &j wword1 wword2 &byte_count);
*/
printf(“\nCount of bytes read = %d\n“ byte_count);
printf(“\nCount of values read = %d\n“ value_count);
printf(“\nfp1 = %f i = %d j = %d“ fp1 i j);
printf(“\nword1 = %s word2 = %s\n“ word1 word2);
/* Replacement for line above for wide-character strings version
printf(“\nwword1 = %ls wword2 = %ls\n“ wword1 wword2);
*/
return 0;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 13911066 2007-03-07 22:48 Apress.Beginning.C.From.Novice.to.Professional.4th.Edition.Oct.2006.pdf
文件 1888 2006-07-24 15:28 7534 Code Download\Code from the Book\program10_01.c
文件 414 2006-07-24 15:29 7534 Code Download\Code from the Book\program10_02.c
文件 496 2006-07-24 15:49 7534 Code Download\Code from the Book\program10_03.c
文件 449 2006-07-24 15:58 7534 Code Download\Code from the Book\program10_04.c
文件 666 2006-07-24 16:02 7534 Code Download\Code from the Book\program10_05.c
文件 811 2006-07-24 18:50 7534 Code Download\Code from the Book\program10_06.c
文件 2364 2006-09-16 17:37 7534 Code Download\Code from the Book\program10_07.c
文件 640 2006-07-25 12:25 7534 Code Download\Code from the Book\program10_08.c
文件 461 2006-07-25 12:26 7534 Code Download\Code from the Book\program10_09.c
文件 395 2006-07-25 12:29 7534 Code Download\Code from the Book\program10_10.c
文件 1017 2006-09-16 17:40 7534 Code Download\Code from the Book\program10_11.c
文件 367 2006-07-25 12:52 7534 Code Download\Code from the Book\program10_12.c
文件 1376 2006-04-13 13:48 7534 Code Download\Code from the Book\program11_01.c
文件 1845 2006-04-14 13:09 7534 Code Download\Code from the Book\program11_02.c
文件 1972 2006-04-13 14:02 7534 Code Download\Code from the Book\program11_03.c
文件 2737 2006-04-13 14:07 7534 Code Download\Code from the Book\program11_04.c
文件 2815 2006-04-13 14:11 7534 Code Download\Code from the Book\program11_05.c
文件 3089 2006-09-17 16:45 7534 Code Download\Code from the Book\program11_06.c
文件 5735 2006-04-13 15:04 7534 Code Download\Code from the Book\program11_06a.c
文件 4156 2006-09-17 16:48 7534 Code Download\Code from the Book\program11_07.c
文件 593 2006-09-17 16:52 7534 Code Download\Code from the Book\program11_08.c
文件 6587 2006-09-17 18:25 7534 Code Download\Code from the Book\program11_09.c
文件 1662 2006-08-04 15:42 7534 Code Download\Code from the Book\program12_01.c
文件 2324 2006-08-14 17:36 7534 Code Download\Code from the Book\program12_02.c
文件 1945 2006-09-04 18:41 7534 Code Download\Code from the Book\program12_03.c
文件 7612 2006-08-05 16:39 7534 Code Download\Code from the Book\program12_04.c
文件 5470 2006-09-17 19:51 7534 Code Download\Code from the Book\program12_05.c
文件 2694 2006-08-05 20:02 7534 Code Download\Code from the Book\program12_06.c
文件 11787 2006-09-04 18:46 7534 Code Download\Code from the Book\program12_07.c
............此处省略171个文件信息
相关资源
- 3新概念模拟电路-运放电路的频率特性
- TCP IP通信labview程序
- Azure开发教程:Azure_Serverless_Computing
- SpringMVC文件上传与的实现.rar
- Power Electronic Converters Modeling and Contr
- CE修改器风叶人加强版
- Oracle+11gR2+RAC安装详解(HP-UX+11.31+ia6
- Oracle+GoldenGate运维完全手册
- STM32F103RC+ADC+DMA多通道采样LCD显示
- Modbus协议官方文档中、英文全
- pcbtemp电流计算软件
- I2C读写AT24C02 基于STM32F103 cube116540
- Scratch源码
- Microsoft Forms 2.0107770
- 实验三 消息中间件应用开发:Active
- WCE注入工具
- ModelGoon-4.4.1-site.zip
- AsyncTask文件控制暂停和继续,在状态
- Visio大全模具(含Cisco、IBM等常用拓扑
- 信号奇异点Lipschitz指数计算
- 基于STM32RCT6的步进电机驱动程序
- 酒店管理系统基于Qt Creator5)
- 用友NC开发API字典
- Navicat Premium 15汉化包.zip55438
- 登录注册界面.zip48872
- 条码字体barcode128
- Rational Rose Common破解文件
- res10_300x300_ssd_iter_140000.caffemodel与dep
- scratch 第1课 翻跟斗的小猫(入门)
- stm32f407上的两个can发送和接收例程
评论
共有 条评论