int main(int argc, char **argv) { Iniciar(); Carregar(); while(jogando) { FPS(); Eventos(); Acoes(); Sons(); Desenhar(); } Finalizar(); return(0); }
SISTEMA_LUBRICANTE_TURBINA_2::SISTEMA_LUBRICANTE_TURBINA_2(QWidget *parent) : QWidget(parent), ui(new Ui::SISTEMA_LUBRICANTE_TURBINA_2) { ui->setupUi(this); Tiempo=0; Fin=0.020; Fout=0.021; Area=3.4125; CITanque=0.3881; CITin_tanque=70; Densidad=550; CP_ac=1.98; Temp_ac_in=075; q_elect1=0; ValMaxPre=206; TaoBomba=0.5; CIPBomba=0; ValMaxFlujo=0.021; CIFBomba=0; ArranqueBomba=0; ValMaxFlujoBarrido=0.021; CIFBombaBarrido=0; TaoBombaBarrido=0.5; UInter=30; AInter=9; TAmb=25; CP_ac2=1.98; Tac_in=80; Masa_ac=152.57; CITemp_ac=25; Densidad2=690; ValFlujo=0.063; TaoFlujo=0.5; CIFlujo=0; ValMaxTCA=79.44; CITCA=21.66; ValMaxTCB=86.11; CITCB=21.66; ValMaxTCC=100; CITCC=21.66; ValMaxTCD=89.44; CITCD=21.66; ValMaxTCE=83.88; CITCE=21.66; ValMaxTLUB=40.556; CITLUB=21.66; ValMaxTAGB=79.44; CITTAGB=21.66; SISTEMA_LUBRICANTE_TURBINA_2::Timer=new QTimer(this); connect(this->ui->btn1,SIGNAL(clicked()),this,SLOT(Iniciar())); connect(this->ui->btn2,SIGNAL(clicked()),this,SLOT(Finalizar())); connect(this->ui->checkBox4,SIGNAL(clicked(bool)),this,SLOT(BombaSuministro())); connect(Timer,SIGNAL(timeout()),this,SLOT(Modelo())); }