文件名称:215
-
所属分类:
- 标签属性:
- 上传时间:2013-05-29
-
文件大小:237.64kb
-
已下载: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/
sajkdk/ASC12.FON
sajkdk/Debug/
sajkdk/Debug/sajkdk.exe
sajkdk/Debug/sajkdk.ilk
sajkdk/Debug/sajkdk.pch
sajkdk/Debug/sajkdk.pdb
sajkdk/Debug/sp.dat
sajkdk/Debug/test.obj
sajkdk/Debug/vc60.idb
sajkdk/Debug/vc60.pdb
sajkdk/sajkdk.dsp
sajkdk/sajkdk.dsw
sajkdk/sajkdk.opt
sajkdk/sajkdk.plg
sajkdk/test.c
sajkdk/Test.txt
sajkdk/ASC12.FON
sajkdk/Debug/
sajkdk/Debug/sajkdk.exe
sajkdk/Debug/sajkdk.ilk
sajkdk/Debug/sajkdk.pch
sajkdk/Debug/sajkdk.pdb
sajkdk/Debug/sp.dat
sajkdk/Debug/test.obj
sajkdk/Debug/vc60.idb
sajkdk/Debug/vc60.pdb
sajkdk/sajkdk.dsp
sajkdk/sajkdk.dsw
sajkdk/sajkdk.opt
sajkdk/sajkdk.plg
sajkdk/test.c
sajkdk/Test.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.