CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - create object
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Sub Category
Compress-Decompress algrithms
STL
Data structs
Algorithm
AI-NN-PR
matlab
Bio-Recognize
Crypt_Decrypt algrithms
mathematica
Maple
DataMining
Big Data
comsol
physical calculation
chemical calculation
simulation modeling
Search - create object - List
[
Mathimatics-Numerical algorithms
]
tdbl
DL : 0
图的遍历算法cpp程序,有类Graph,可以直接创建对象调用相关函数,ACM比赛适用-Graph traversal algorithm cpp procedures have category Graph, can directly create an object called correlation function, ACM applicable competition
Date
: 2026-01-09
Size
: 1kb
User
:
[
Mathimatics-Numerical algorithms
]
Class-and-object-
DL : 0
1. 建立一个对象数组,内放5个学生的数据(学号、成绩)。请根据下面要求实现类中的功能,其他的函数根据需要创建。 (1). 用指针指向数组首元素,输出第1,3,5个学生的数据。 (2). 以对象指针作为形式参数找出5个学生中学习成绩最高者。注:函数名为max 2. 定义一个圆类,分别用以下方法计算圆的面积和周长。 (1). 用成员函数实现求圆的面积和周长。 (2). 用友元函数求圆的面积和周长 -(1) create an array of objects, put the data of the five students (results). According to the following requirements in the class of functions, and other functions need to create. (1) with a pointer to the first element of the array, the output data of 1, 3 and 5 students. (2). Object pointer as a formal parameter to identify the five students in grades. Note: function called max 2 define a circle class, use the following methods to calculate the circle area and perimeter. (1) member function of circular area and perimeter. (2). UF Function round the area and perimeter
Date
: 2026-01-09
Size
: 2kb
User
:
苏树峰
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.