文件名称:ch06
- 所属分类:
- 其他小程序
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2012-12-10
- 文件大小:
- 34.93mb
- 下载次数:
- 0次
- 提 供 者:
- 王*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
1. 编写并测试如下函数:void Add (int a[], int m, int b[], int n) 该函数将数组b的前n个元素追加到数组a的前m个元素后,假定数组a具有至少存放m+n个元素的空间。例如,如果数组a为{22,33,44,55,66,77,88,99},数组b为{20,30,40,50,60,70,80,90},则调用Add(a,5,b,3)后,将把数组a变为{22,33,44,55,66,20,30,40}。注意数组b并没有改变,而且数组a中只需改变n个元素。
编写一个使用指针返回类型的函数,使用该函数在字符串中搜索一个子串,并返回第一个相匹配的子串指针。-1. Prepare and test the following function: void Add (int a [], int m, int b [], int n) This function will be appended to the array a first n elements of the array b before m elements, it is assumed thatthe array a has a structure at least a space of the storage element of m+ n. For example, if the array a {22,33,44,55,66,77,88,99} array b {20,30,40,50,60,70,80,90}, then invoke the Add (a , 5, b, 3) after the array are a becomes {22,33,44,55,66,20,30,40}. Note that the array b does not change, simply by changing the n elements in the array a.
Write a pointer return type of the function, use the function to search for a substring in a string and returns the pointer of the first match of the substring.
编写一个使用指针返回类型的函数,使用该函数在字符串中搜索一个子串,并返回第一个相匹配的子串指针。-1. Prepare and test the following function: void Add (int a [], int m, int b [], int n) This function will be appended to the array a first n elements of the array b before m elements, it is assumed thatthe array a has a structure at least a space of the storage element of m+ n. For example, if the array a {22,33,44,55,66,77,88,99} array b {20,30,40,50,60,70,80,90}, then invoke the Add (a , 5, b, 3) after the array are a becomes {22,33,44,55,66,20,30,40}. Note that the array b does not change, simply by changing the n elements in the array a.
Write a pointer return type of the function, use the function to search for a substring in a string and returns the pointer of the first match of the substring.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ch06\ch06.rar
....\...._02\ch06_02\ch06_02.cpp
....\.......\.......\ch06_02.vcproj
....\.......\.......\ch06_02.vcproj.原暗-PC.原暗.user
....\.......\.......\ch06_02.vcxproj
....\.......\.......\ch06_02.vcxproj.filters
....\.......\.......\ch06_02.vcxproj.user
....\.......\.......\Debug\ch06_02.exe.embed.manifest
....\.......\.......\.....\ch06_02.exe.embed.manifest.res
....\.......\.......\.....\ch06_02.exe.intermediate.manifest
....\.......\.......\.....\ch06_02.lastbuildstate
....\.......\.......\.....\ch06_02.log
....\.......\.......\.....\ch06_02.obj
....\.......\.......\.....\ch06_02_manifest.rc
....\.......\.......\.....\CL.read.1.tlog
....\.......\.......\.....\CL.write.1.tlog
....\.......\.......\.....\link-cvtres.read.1.tlog
....\.......\.......\.....\link-cvtres.write.1.tlog
....\.......\.......\.....\link.8100-cvtres.read.1.tlog
....\.......\.......\.....\link.8100-cvtres.write.1.tlog
....\.......\.......\.....\link.8100.read.1.tlog
....\.......\.......\.....\link.8100.write.1.tlog
....\.......\.......\.....\link.read.1.tlog
....\.......\.......\.....\link.write.1.tlog
....\.......\.......\.....\mt.read.1.tlog
....\.......\.......\.....\mt.write.1.tlog
....\.......\.......\.....\rc.read.1.tlog
....\.......\.......\.....\rc.write.1.tlog
....\.......\.......\.....\vc100.idb
....\.......\.......\.....\vc100.pdb
....\.......\ch06_02.ncb
....\.......\ch06_02.sdf
....\.......\ch06_02.sln
....\.......\ch06_02.sln.old
....\.......\ch06_02.suo
....\.......\ch06_02.suo.old
....\.......\Debug\ch06_02.exe
....\.......\.....\ch06_02.ilk
....\.......\.....\ch06_02.pdb
....\.......\ipch\ch06_02-540d476c\ch06_02-334e319e.ipch
....\.......\UpgradeLog.XML
....\.......\_UpgradeReport_Files\UpgradeReport.css
....\.......\....................\UpgradeReport.xslt
....\.......\....................\UpgradeReport_Minus.gif
....\.......\....................\UpgradeReport_Plus.gif
....\......3\ch06_03\ch06_03.cpp
....\.......\.......\ch06_03.vcxproj
....\.......\.......\ch06_03.vcxproj.filters
....\.......\.......\ch06_03.vcxproj.user
....\.......\.......\Debug\ch06_03.exe.embed.manifest
....\.......\.......\.....\ch06_03.exe.embed.manifest.res
....\.......\.......\.....\ch06_03.exe.intermediate.manifest
....\.......\.......\.....\ch06_03.lastbuildstate
....\.......\.......\.....\ch06_03.log
....\.......\.......\.....\ch06_03.obj
....\.......\.......\.....\ch06_03_manifest.rc
....\.......\.......\.....\CL.read.1.tlog
....\.......\.......\.....\CL.write.1.tlog
....\.......\.......\.....\link-cvtres.read.1.tlog
....\.......\.......\.....\link-cvtres.write.1.tlog
....\.......\.......\.....\link.6100-cvtres.read.1.tlog
....\.......\.......\.....\link.6100-cvtres.write.1.tlog
....\.......\.......\.....\link.6100.read.1.tlog
....\.......\.......\.....\link.6100.write.1.tlog
....\.......\.......\.....\link.read.1.tlog
....\.......\.......\.....\link.write.1.tlog
....\.......\.......\.....\mt.read.1.tlog
....\.......\.......\.....\mt.write.1.tlog
....\.......\.......\.....\rc.read.1.tlog
....\.......\.......\.....\rc.write.1.tlog
....\.......\.......\.....\vc100.idb
....\.......\.......\.....\vc100.pdb
....\.......\ch06_03.sdf
....\.......\ch06_03.sln
....\.......\ch06_03.suo
....\.......\Debug\ch06_03.exe
....\.......\.....\ch06_03.ilk
....\.......\.....\ch06_03.pdb
....\.......\ipch\ch06_03-77bed6f\ch06_03-33604a1f.ipch
....\......5\ch06_05\ch06_05.cpp
....\.......\.......\ch06_05.vcxproj
....\.......\.......\ch06_05.vcxproj.filters
....\.......\.......\ch06_05.vcxproj.user
....\.......\.......\Debug\ch06_05.exe.embed.manifest
....\.......\.......\.....\ch06_05.exe.embed.manifest.res
....\.......\.......\.....\ch06_05.exe.intermediate.manifest
....\.......\.......\.....\ch06_05.lastbuildstate
....\.......\.......\.....\ch06_05.log
....\.......\.......\.....\ch06_05.obj
....\.......\.......\.....\ch06_05_manifest.rc
....\.......\.......\.....\CL.read.1.tlog
....\.......\.......\.....\CL.write.1.tlog
....\.......\.......\.....\link-cvtres.read.1.tlog
....\.......\.......\.....\link-cvtres.write.1.tlog
....\.......\.......\.....\link.1904-cv