搜索资源列表
josephus.1
- 描述:设编号为1,2,…,n(n>0)个人按顺时针方向围坐一圈,每人持有一个正整数密码。开始时任意给出一个报数上限值m,从第一个人开始顺时针方向自1起顺序报数,报到m时停止报数,抱m的人出列,从他在顺时针方向上的下一个人起重新自1起顺序报数;如此下去,直到所有人全部出列为止。要求设计一个程序模拟此过程,并给出出列人的编号序列。 .算法思想: Jeseph函数是实现问题要求的主要函数,其算法思想是:从1至m对带头结点的单循环链表循环计数,到m时,输出该结点的编号值,,再从
DynamicCompileAndRun_src
- c# 源代码动态编译运行,只针对简单的源代码,要有main函数。
优美C语言(3)
- 3. 源程序要正确地运行,必须要有什么函数?(单选) A. printf函数 B. 自定义的函数 C. main函数 D. 不需要函数 答案: C-3. Source code to run correctly, we must have what function (Option) A. B. printf function defined function main function D. C. function need not answer : C
shangchuanchengxu5
- 将一个5*5的矩阵中得最大元素放在中心,4个角分别放4个最小的元素,写一函数实现,用main函数调用。-A 5* 5 matrix in the largest element in the center, four corners were placed four smallest element, write a function to achieve, with the main function call.
ah
- 本程序中定义了函数ave,其形参为结构指针变量ps。boy被定义为外部结构数组,因此在整个源程序中有效。在main函数中定义说明了结构指针变量ps,并把boy的首地址赋予它,使ps指向boy数组。然后以ps作实参调用函数ave。在函数ave中完成计算平均成绩和统计不及格人数的工作并输出结果。-This procedure defines a function in the ave, the shape parameters for the structure pointer variable p
maopao
- 本程序从main()函数开始..实现冒泡排序算法..数据需手动输入.-This procedure from the main () function to start. . Bubble Sort algorithm realization. . Need to manually enter data.
main
- AVR软件操作函数库 AVR软件操作函数库-failed to translate
filesystem
- 简单的文件系统实现 (main函数) 创建,复制,粘贴,打开文件夹,重命名 etc-A simplified file system realization. Including create, copy, paste, open file, rename etc.
C
- C程序由函数构成,这些函数既可以放在一个文件中,也可以放在几个文件中。在若干函数中有且只能有一个main函数,程序的执行总是从main函数开始,执行完main函数返回系统。-C program constituted by the function, these functions either on a file, can also be placed in several files. And there can be only one main function in certain fu
main
- 用函数重载编程,用以实现循环左移、循环右移的位运算(bit),移位位数在1~30000范围内任意-Function overloading programming for Bitwise rotate left, rotate right (bit), the shift amount anywhere in the range of 1 to 30000
main
- 此程序是针对LM75的I2C 操作平台(主方式的软件平台)的底层的C 子程序,如发送数据 及接收数据,应答位发送,并提供了几个直接面对器件的操作函数。-This procedure is for the LM75 I2C operation platform (Master software platform) of the bottom of the C subroutine, such as transmit data and receive data acknowledge bit i
try11
- 冒泡排序 经典算法 计算复杂度 O(N2) VOID MAIN函数包括 -Classic bubble sort algorithm complexity of O (N2) VOID MAIN functions include
try12
- try12文件描述:堆排序 经典算法 计算复杂度 O(NLOGN) VOID MAIN函数包括 -try12 File Descr iption: Classic heap sort algorithm complexity O (NLOGN) VOID MAIN functions include
try13
- try13文件描述: 快速排序 经典算法 计算复杂度 O(NLOGN) VOID MAIN函数包括 -try13 File Descr iption: The classic quick sort algorithm complexity O (NLOGN) VOID MAIN functions include
try14
- try14文件描述: 选择排序 经典算法 计算复杂度 O(N2) VOID MAIN函数包括 -try14 File Descr iption: Sort classical algorithm complexity O (N2) VOID MAIN functions include
try15
- try15 插入排序 经典算法 计算复杂度 O(N2) VOID MAIN函数包括 -try15 insertion sort algorithm classical computational complexity O (N2) VOID MAIN functions include
main
- ACM练习,调用系统函数实现数组的快速排序,节省时间和空间-ACM exercises, call the system function for fast sorting of the array, saving time and space
main
- 主成分分析的三种方法,一种是自编程序,一种是princomp函数,一种是pcacov函数-Three principal component analysis, one is self-programming, one is princomp function, a function is pcacov
panduanshifoushuixianhuashu
- 调用函数fun判断一个三位数是否 水仙花数 。在main函数中从键盘输入一个三位数,并输出判断结果。-Call the function fun judge whether a three-digit number daffodils. In the main function, enter a three-digit number the keyboard, and output a result.
Array
- 3.编写程序:定义一个Person类,要求: ①私有成员数据: ●char ID[ 20 ] //身份证号 ●char *name //存放姓名的动态字符数组的起始地址 ●char *address //存放住址的动态字符数组的起始地址 ②公有成员函数: ●Person ( char *n=0, char *na=0, char *ad=0 ) //构造函数 ●Person ( Person &p ) //拷贝构造函数,实现深拷贝 ●~ Person ( ) //