zoukankan
html css js c++ java
fscanf(格式化字符串输入)
fscanf(格式化字符串输入)
相关函数
scanf,sscanf
表头文件
#include<stdio.h>
定义函数
int fscanf(FILE * stream ,const char *format,....);
函数说明
fscanf()会自参数stream的文件流中读取字符串,再根据参数format字符串来转换并格式化数据。格式转换形式请参考scanf()。转换后的结构存于对应的参数内。
返回值
成功则返回参数数目,失败则返回-1,错误原因存于errno中。
附加说明
范例
#include<stdio.h>
main()
{
int i;
unsigned int j;
char s[5];
fscanf(stdin,”%d %x %5[a-z] %*s %
f
”,&i,&j,s,s);
printf(“%d %d %s ”,i,j,s);
}
查看全文
相关阅读:
Building Seam 2.0 Application with NetBeans 6.1
Better Builds with Maven学习笔记
NetBeans Globel Translation Team Tshirt!
Participate in MySQLGlassFish Student Contest and Win $500
NetBeans Globel Translation Team Tshirt!
Better Builds with Maven学习笔记
Building Seam 2.0 Application with NetBeans 6.1
Maven2 的新特性
Participate in MySQLGlassFish Student Contest and Win $500
数据库设计及数据缓存
原文地址:https://www.cnblogs.com/lixiaofei1987/p/3200735.html
最新文章
程序人生2005年(27)
vs2012编译qt5.0.1
Ubuntu麒麟是投机取巧的楷模
MT4编程DLL编程的整个流程
PyCharm安装及使用
Python关键点常识
sublime text 3创建新文件插件AdvanceNewFile
在同一台电脑上同时安装Python2和Python3
如何在win10上同时安装python2和python3
Linux测试磁盘能力 规格严格
热门文章
MongoDB 复制 规格严格
Struts 规格严格
MongoDB配置ReplSet 规格严格
MemCached 规格严格
MongoDB+java+spirng+morphia 规格严格
MongoDB 索引 规格严格
MongoDB 查询语法 规格严格
Node 规格严格
MySQL使用分区时出现的若干问题 规格严格
Integrating Seam with Maven, Netbeans and GlassFish
Copyright © 2011-2022 走看看