文件名称:5
介绍说明--下载内容来自于网络,使用问题请自行百度
1. 编写一个使用指针返回类型的函数,使用该函数在字符串中搜索一个子串,并返回第一个相匹配的子串指针。该函数的原型如下:
输入为3行。第一行为两个整数,表示字符串和需要查找的子串的长度。第二行为字符串,第三行为子串。
输出见main函数。
程序的一个输入输出样例为:
Enter the length of string and substring
10 5
abcdefghij
defgh
find substring:defghij
-1. Write a function that returns a pointer to the type of use, use the search function is a substring in the string, and returns the first match substring pointer. The prototype of this function is as follows: Input for 3 rows. The first acts of the two integer representing the length of the string and the need to find a substring. The second behavior string substring third acts. Output, see the main function. An input and output sample program is: Enter the length of string and substring 10 5 abcdefghij defgh find substring: defghij
输入为3行。第一行为两个整数,表示字符串和需要查找的子串的长度。第二行为字符串,第三行为子串。
输出见main函数。
程序的一个输入输出样例为:
Enter the length of string and substring
10 5
abcdefghij
defgh
find substring:defghij
-1. Write a function that returns a pointer to the type of use, use the search function is a substring in the string, and returns the first match substring pointer. The prototype of this function is as follows: Input for 3 rows. The first acts of the two integer representing the length of the string and the need to find a substring. The second behavior string substring third acts. Output, see the main function. An input and output sample program is: Enter the length of string and substring 10 5 abcdefghij defgh find substring: defghij
(系统自动生成,下载前可以参看下载内容)
下载文件列表
5/10.cpp
5/c++_ch06_10.vcxproj
5/c++_ch06_10.vcxproj.filters
5/Debug/10.obj
5/Debug/c++_ch06_10.lastbuildstate
5/Debug/c++_ch06_10.log
5/Debug/cl.command.1.tlog
5/Debug/CL.read.1.tlog
5/Debug/CL.write.1.tlog
5/Debug/link-cvtres.read.1.tlog
5/Debug/link-cvtres.write.1.tlog
5/Debug/link-rc.read.1.tlog
5/Debug/link-rc.write.1.tlog
5/Debug/link.command.1.tlog
5/Debug/link.read.1.tlog
5/Debug/link.write.1.tlog
5/Debug/vc110.idb
5/Debug/vc110.pdb
5/Debug
5
5/c++_ch06_10.vcxproj
5/c++_ch06_10.vcxproj.filters
5/Debug/10.obj
5/Debug/c++_ch06_10.lastbuildstate
5/Debug/c++_ch06_10.log
5/Debug/cl.command.1.tlog
5/Debug/CL.read.1.tlog
5/Debug/CL.write.1.tlog
5/Debug/link-cvtres.read.1.tlog
5/Debug/link-cvtres.write.1.tlog
5/Debug/link-rc.read.1.tlog
5/Debug/link-rc.write.1.tlog
5/Debug/link.command.1.tlog
5/Debug/link.read.1.tlog
5/Debug/link.write.1.tlog
5/Debug/vc110.idb
5/Debug/vc110.pdb
5/Debug
5
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.