文件名称:215
- 所属分类:
- 其他小程序
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2013-05-29
- 文件大小:
- 238kb
- 下载次数:
- 0次
- 提 供 者:
- 肖*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
程序运行时,先从键盘输入一个文本文件的文件名(约定:字符数≤127字节,可含路径)和一个字符串(约定:字符数≤20字节,其中不含空格、TAB等,后面称之为Str),再在屏幕上显示该文件的内容。要求显示完内容后,在屏幕上输出文件的行数(行之间以’\n’为分隔、每行的长度不定但均≤200个字节)、字符串Str在文件中第1次出现的行号和最后一次出现的行号(查找时不区分大小写、不跨行查找,若未找到,则行号显示为-1)。
注意,程序中不能使用库函数fgets或使用同名的变量、函数、单词,行的编号从1开始计。
-Program is running, start with the keyboard input a text file name (convention: ≤ 127 byte characters, can contain the path) and a string (convention: the number of characters ≤ 20 bytes, which does not contain spaces, TAB, etc., hereinafter, referred Str), and then displayed on the screen contents of the file. Required to display the content, it output file on the screen the number of lines (lines between \ n as a separator, but indefinite length of each line were ≤ 200 bytes), the string Str 1st in the document appear the line number and line number of the last occurrence (search is not case sensitive, does not cross to find, if not found, the line number is displayed as-1).
Note that the program can not use the library function fgets or use the same name as variables, functions, word, line numbers starting at 1 meter.
Click here to download the program runs test file Test.txt. Programming Available
注意,程序中不能使用库函数fgets或使用同名的变量、函数、单词,行的编号从1开始计。
-Program is running, start with the keyboard input a text file name (convention: ≤ 127 byte characters, can contain the path) and a string (convention: the number of characters ≤ 20 bytes, which does not contain spaces, TAB, etc., hereinafter, referred Str), and then displayed on the screen contents of the file. Required to display the content, it output file on the screen the number of lines (lines between \ n as a separator, but indefinite length of each line were ≤ 200 bytes), the string Str 1st in the document appear the line number and line number of the last occurrence (search is not case sensitive, does not cross to find, if not found, the line number is displayed as-1).
Note that the program can not use the library function fgets or use the same name as variables, functions, word, line numbers starting at 1 meter.
Click here to download the program runs test file Test.txt. Programming Available
(系统自动生成,下载前可以参看下载内容)
下载文件列表
sajkdk
......\ASC12.FON
......\Debug
......\.....\sajkdk.exe
......\.....\sajkdk.ilk
......\.....\sajkdk.pch
......\.....\sajkdk.pdb
......\.....\sp.dat
......\.....\test.obj
......\.....\vc60.idb
......\.....\vc60.pdb
......\sajkdk.dsp
......\sajkdk.dsw
......\sajkdk.opt
......\sajkdk.plg
......\test.c
......\Test.txt