?? newmark.cpp
字號:
// file NEWMARK.CXX
#include "newmark.hxx"
Newmark :: Newmark (int n, Domain* aDomain)
: TimeIntegrationScheme (n,aDomain)
// Constructor.
{
beta = NULL ;
gamma = NULL ;
}
double Newmark :: giveBeta ()
// Returns the beta coefficient of the receiver. Reads it if it does not
// exist yet.
{
if (beta)
return *beta ;
else {
beta = new double[1] ;
(*beta) = this -> read("beta") ;
return *beta ;}
}
double Newmark :: giveGamma ()
// Returns the gamma coefficient of the receiver. Reads it if it does not
// exist yet.
{
if (gamma)
return *gamma ;
else {
gamma = new double[1] ;
(*gamma) = this -> read("gamma") ;
return *gamma ;}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -