问题在这里 [英] problem here

查看:88
本文介绍了问题在这里的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

创建一个名为number.txt的记事本文件,该文件由在硬盘上用新行分隔的int类型编号组成。编写一个程序,从该文件中读取数字并将其显示在屏幕上,同时显示文件中的总数以及屏幕上的最大和最小数字。

Create a notepad file named number.txt which consists of int type numbers separated with new lines on your hard disk. Write a program which read the numbers form this file and show them to screen, also display the total numbers in files and largest and smallest numbers to the screen.

推荐答案

您好,

Basiaclly u ant编写一个代码,使用fgets从文件中读取信息,然后使用sscanf读取数字并使用printf打印它。


有你试过这个吗?

告诉我们ru卡在哪里。


Raghuram
Hi,
Basiaclly u ant to write a code to read the info from file using fgets and then sscanf to read the number and print it using printf.

Have u tried anything on this?
Tell us where r u stuck.?

Raghuram


我喜欢他们如何复制并按原样粘贴作业/作业问题...
I love how they copy and paste the assignment/homework question as is...



我喜欢他们如何复制和粘贴作业/作业问题。 ..
I love how they copy and paste the assignment/homework question as is...



这是因为他们离开了工作太久了。然后他们认为我们只是给他们代码,他们不必担心它。

It''s because they''ve left the work too long. Then they think that we''ll just give them the code and they won''t have to worry about it.


这篇关于问题在这里的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆