标题:fgets 和sscanf
取消只看楼主
Timber
Rank: 1
等 级:新手上路
帖 子:42
专家分:0
注 册:2010-1-31
结帖率:71.43%
已结贴  问题点数:10 回复次数:0 
fgets 和sscanf
Write a program which reads numbers from a file where each line
contains three numbers. Use fgets and sscanf to process each line.

For example:
1 2 4
43 5 -3

有点迷茫 。。。是先用fgets读出每行然后用sscanf限定长度吗?
搜索更多相关主题的帖子: fgets sscanf 
2010-05-11 00:28



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-306139-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.717326 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved