资源简介
英文版+源码,至于内容就不用多介绍了!
代码片段和文件信息
/* 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个文件信息
相关资源
- principles of communication systems
- 文本分析软件ROST CM6+使用说明
- Franc3D7.0破解版.rar
- 软件cmmi3的所有文档
- 数据挖掘原理与SPSS-Clementine应用宝典
- serial for mac(全功能串行终端管理软件
- Flac3D模拟基坑开挖全命令流
- objccn-app-architecture,pdf epub mobi App架构
- VProject软件加密
- Hmail server+Afterlogic webmail lite搭建免费
- CCS6.0教程
- eclipse表单设计器插件
- Foundations of Machine Learning 2nd Edition
- m2eclipse安装包
- tomcat官方8.0.53版Windows-64位
- opengl实现太阳系动态模型,地球,月
- ArcGIS空间分析教程汤国安
- PM3官方windows GUI客户端软件
- F5 101题库2018年.docx
- 中国地图mxd Arcmap ArcGis
- 基于QT的摄像头捕获程序
-
Remob
jects Hydra for Delphi V3.0.39.777 ful - NuGet Package Manager vsix插件含vs2010.203.
- gcc-4.9.3 安装依赖组件 (以此为准)
- OpenCV3.3最小二乘法直线拟合
- Multiphysics Modeling Using COMSOL v.4-02.pdf
- 贝叶斯数据分析 Third Edition (C - Gel
- 复分析基础及工程应用 答案 fundamen
- Understanding Delta-Sigma Data Converters
- TeeChart.Pro.v5.ActiveX.rar
评论
共有 条评论