从文件中读取和显示行。 [英] Reading and displaying lines from file.

查看:65
本文介绍了从文件中读取和显示行。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么人。我刚决定尝试编程,因为我是一名体育专业的学生。作为我的专业的一部分我处理大量的文书工作。所以我想写一个程序来搞乱我必须处理的所有论文。我的问题是我已在我的文本文件中读取并可以显示整个文本文件。现在我希望能够查看我的文本文件的各行,看看它们是否符合某个标准。任何人都可以帮我解决这个问题到目前为止我有这个代码:

展开 | 选择 | Wrap | 行号

解决方案

好的,所以标准是什么?


展开 | 选择 | Wrap | 行号


我很抱歉我真的很新,所有这些你可以建议我如何使用char * gets(缓冲区)和我的代码中的东西或我将它放在代码中的位置。

Whats up guys. I just decided i would try porgramming as i am a physical education major. As apart of my major i deal with alot of paper work. So i wanted to write a program to mess with all the papers i have to deal with. My question is i have read in my text file and can display the WHOLE text file. Now i want to be able to look at individual lines of my text file to see if they meet a certain criteria. can anyone help me with this problem i have this code so far :

Expand|Select|Wrap|Line Numbers

解决方案

Okay, so what is the criteria?


Expand|Select|Wrap|Line Numbers


im sorry im really new to all this can u suggest how i use the char *gets (buffer) and stuff in my code or where i would put it or implement it in the code.


这篇关于从文件中读取和显示行。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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