?? input.cc
字號:
#include "input.h"input::input(){}input::~input(){ for(int i=0; i<m.size(); i++){ delete m[i]; }}void input::set_name(string x){ name = x;}string input::get_name(){ return(name);}void input::set_member(string y, float x1, float x2, float x3){ member *mp = new member(x1,x2,x3); mp->set_name(y); m.push_back(mp); mu.push_back(0.0);}void input::set_member(string y, float x1, float x2, float x3, float x4){ member *mp = new member(x1,x2,x3,x4); mp->set_name(y); m.push_back(mp); mu.push_back(0.0);}float input::get(int k, float x){ return(m[k]->get(x));} string input::getm_name(int k){ return(m[k]->get_name());}void input::calc(float x){ for(int i=0; i<m.size(); i++){ mu[i]=m[i]->get(x); // cerr << "mu: " << mu[i] << " "; } // cerr << endl;}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -