代码搜索:average
找到约 5,196 项符合「average」的源代码
代码结果 5,196
www.eeworm.com/read/335996/12483674
cpp ch16_1.cpp
//**********************
//** ch16_1.cpp **
//**********************
#include
#include
class Advisor{
int noOfMeeting;
};
class Student{
public:
Student
www.eeworm.com/read/249507/12490917
cpp avescore.cpp
#include
#include
#include
using namespace std;
int main()
{
ifstream inFile;
ofstream outFile;
int test1,test2,test3,test4,test5;
double average
www.eeworm.com/read/249507/12490950
txt testavg.txt
Student ID T
Test Scores: 88 87 86 89 88
Average test score: 87.60
www.eeworm.com/read/335780/12499632
m ourstats.m
function[avg,stdev,r]=ourstats(x,tol)
% OURSTATS多输入输出参数示例
% 该函数计算处理矩阵,得到相应的均值、标准差和矩阵的秩
double x
[m,n]=size(x);
if m==1
m=n;
end
% Average
avg=sum(x)/m;
Sandad deviation
stdev=sqrt(sum(x
www.eeworm.com/read/335780/12499640
m ourstats.m
function[avg,stdev,r]=ourstats(x,tol)
% OURSTATS多输入输出参数示例
% 该函数计算处理矩阵,得到相应的均值、标准差和矩阵的秩
double x
[m,n]=size(x);
if m==1
m=n;
end
% Average
avg=sum(x)/m;
Sandad deviation
stdev=sqrt(sum(x
www.eeworm.com/read/249069/12524583
txt 例9.11.txt
例9.11 静态成员函数的应用。
#include
using namespace std;
class Student //定义Student类
{public:
Student(int n,int a,float s):num(n),age(a),score(s){ } //定义构造函数
void total( )
www.eeworm.com/read/248954/12530152
cpp 5_6.cpp
#include
using namespace std;
int Average(int i)
{ static int sum = 0, count = 0; //声明静态局部变量,具有全局寿命,局部可见
sum = sum + i; count++;
return sum / count;
}
int main()
{ int num
www.eeworm.com/read/248541/12554259
f ttcoef.f
subroutine ttcoef(k)
!! ~ ~ ~ PURPOSE ~ ~ ~
!! this subroutine computes travel time coefficients for routing
!! along the main channel
!! ~ ~ ~ INCOMING VARIABLES ~ ~ ~
www.eeworm.com/read/248541/12554591
f rtsed.f
subroutine rtsed
!! ~ ~ ~ PURPOSE ~ ~ ~
!! this subroutine routes sediment from subbasin to basin outlets
!! deposition is based on fall velocity and degradation on stream
www.eeworm.com/read/248541/12554637
f recyear.f
subroutine recyear
!! ~ ~ ~ PURPOSE ~ ~ ~
!! this subroutine inputs measured loadings to the stream network
!! for routing through the watershed where the records are summari