文件名称:1227150100
介绍说明--下载内容来自于网络,使用问题请自行百度
1.基础部分
(1)编写程序实现两个字符串比较的自定义版(教材8.5)。
(2)编写程序实现字符串数组的排序。用指针数组作为函数mySort形参,实现字符串数组的排序。函数mySort还有一个形参n,用来指定字符串数组的大小。
(3)教材8.4
(4)编写程序实现数据交换。分别用指针和引用作为函数mySwap的形参,并通过重载分别实现int、double型变量值的交换。
(5)字符串交换
编写程序,交换两个不同长度的字符串,分别打印之。
要求:用函数调用的方式来实现。主函数中定义两个字符串,然后调用交换函数。教材9.3
2.进阶部分
(1)编写程序实现下述功能:由17人围成一个圈,编号1~17,从第1号开始报数,报到3的倍数的人离开,一直数下去,直到最后只剩下1个人,求此人的编号。(要求用new和delete来分配、释放所需内存空间)。
(2)设计一个函数,形参是引用类型,要求输入三个整数,按从小到大排序后输出。编程完整的程序并测试。 -1 Fundamentals
(A) preparation program compare two strings custom version (textbook 8.5).
(2) procedures for the preparation of a string array sort. With pointer array parameter as a function mySort achieve the sort an array of strings. There is also a function mySort parameter n, is used to specify the size of an array of strings.
(3) Materials 8.4
(4) Write a program for data exchange. Respectively, as a function pointers and references mySwap formals and were achieved by overloading int, double variable value exchange.
(5) string exchange
Write a program to exchange two strings of different lengths, respectively, print it.
Requirements: The way to achieve the function call. The main function define two strings, then call switching function. Materials 9.3
(2) Advanced section
(1) Write a program to achieve the following functions: from 17 people in a circle, numbered 1 to 17, from the No. 1 reported the number of people who report left multiples of 3, has been the number dow
(1)编写程序实现两个字符串比较的自定义版(教材8.5)。
(2)编写程序实现字符串数组的排序。用指针数组作为函数mySort形参,实现字符串数组的排序。函数mySort还有一个形参n,用来指定字符串数组的大小。
(3)教材8.4
(4)编写程序实现数据交换。分别用指针和引用作为函数mySwap的形参,并通过重载分别实现int、double型变量值的交换。
(5)字符串交换
编写程序,交换两个不同长度的字符串,分别打印之。
要求:用函数调用的方式来实现。主函数中定义两个字符串,然后调用交换函数。教材9.3
2.进阶部分
(1)编写程序实现下述功能:由17人围成一个圈,编号1~17,从第1号开始报数,报到3的倍数的人离开,一直数下去,直到最后只剩下1个人,求此人的编号。(要求用new和delete来分配、释放所需内存空间)。
(2)设计一个函数,形参是引用类型,要求输入三个整数,按从小到大排序后输出。编程完整的程序并测试。 -1 Fundamentals
(A) preparation program compare two strings custom version (textbook 8.5).
(2) procedures for the preparation of a string array sort. With pointer array parameter as a function mySort achieve the sort an array of strings. There is also a function mySort parameter n, is used to specify the size of an array of strings.
(3) Materials 8.4
(4) Write a program for data exchange. Respectively, as a function pointers and references mySwap formals and were achieved by overloading int, double variable value exchange.
(5) string exchange
Write a program to exchange two strings of different lengths, respectively, print it.
Requirements: The way to achieve the function call. The main function define two strings, then call switching function. Materials 9.3
(2) Advanced section
(1) Write a program to achieve the following functions: from 17 people in a circle, numbered 1 to 17, from the No. 1 reported the number of people who report left multiples of 3, has been the number dow
(系统自动生成,下载前可以参看下载内容)
下载文件列表
实验六/基础3.cpp
实验六/基础5.cpp
实验六/基础2.cpp
实验六/基础1.cpp
实验六/进阶2.cpp
实验六/基础4.cpp
实验六/进阶1.cpp
实验六
实验六/基础5.cpp
实验六/基础2.cpp
实验六/基础1.cpp
实验六/进阶2.cpp
实验六/基础4.cpp
实验六/进阶1.cpp
实验六
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.