Review


Problem 1
Create a program called Moving to control the level of a tank control as shown.
Cree un programa llamado Moving para controlar el nivel de un control de tanque como se muestra.

Moving

Moving.cpp
void Moving::Window_Open(Win::Event& e)
{
     //________________________________________________________ tank1
     tank1.SetRange(0.0, 100.0);
     tank1.Level = 80.0;
     tank1.TankColor = RGB(0, 160, 0);
}

void Moving::btUp_Click(Win::Event& e)
{
     tank1.Level++;
}

void Moving::btDown_Click(Win::Event& e)
{
     tank1.Level--;
}

© Copyright 2000-2019 Wintempla selo. All Rights Reserved. Sep 05 2019. Home