搜索资源列表
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
8-1
- inv函数声明,指针变量arr未指向数组元素,调用inv函数,实参arr是指针变量,但无指向, 定义inv函数,形参x是指针变量 -inv function declaration, the pointer variable arr does not point to the array elements, inv function is called, the argument arr is a pointer variable, but no point defined inv functi
Cublic-spline-interpulation
- 三次样条插值(简称Spline插值)是通过一系列形值点的一条光滑曲线,数学上通过求解三弯矩方程组得出曲线函数组的过程。-Cubic spline interpolation
4-10
- 设计一个用于人事管理的“人员”类。由于考虑到通用性,这里只抽象出所有类型人员都具有的属性:编号、性别、出生日期、身份证号等。其中“出生日期”声明为一个“日期”类内嵌子对象。用成员函数实现对人员信息的录入和显示。要求包括:构造函数和析构函数、复制构造函数、内联成员函数、带默认形参值的成员函数、类的组合。 -Personnel management for the design of a " people" category. Taking into account the v
4
- 利用函数重载定义3个同名函数swap实现交换两个变量的值(形参为引用,函数内联),分别实现两个int型、double型和char型变量的值的交换,主函数实现输出和函数调用。 -Use function overloading to define three namesake function swap swap the values of two variables to achieve (a reference parameter, function inlin
zhengque
- 给定程序中,函数fun的功能是将形参给定的字符串、整数、浮点数写到文本 文件中,再用字符方式从此文本文件中逐个读入并显示在终端屏幕上。 -Given program, the function fun feature is the parameter given string, integer, float written text File, and then one by one to read from character mode and displayed on th