tempload.cpp
来自「Finite element program for mechanical pr」· C++ 代码 · 共 43 行
CPP
43 行
#include "tempload.h"#include "intools.h"/** This constructor initializes class attributes to the zero values.*/tempload::tempload(){ nlc = 0L; val = 0.0;}/** Destructor*/tempload::~tempload(){}/** This function reads temperature load data from the MEFEL preprocessor file given by the parameter in. Parameters : @param in - pointer to the opened text file @param lc - total number of load cases Returns : @retval 0 - on success @retval 1 - invalid load case number @retval 2 - error reading temperature value*/long tempload::read(FILE *in, long lc){ if (getlong(in, nlc)) return 1L; if ((nlc < 1) && (nlc > lc)) return 1L; if (getdouble(in, val)) return 2L; return 0L;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?