maksud19750203oyaf73
17.07.2020 11:14

Чи можна змінити власності об'єкта у Скречі

Нажмите на рекламу ниже и сразу увидите ответ
Популярные вопросы:
Ответ:
ясин9595
29.07.2020 13:26

#include <iostream>
using std::cout;
using std::endl;

int main()
{
   const int arraySize = 20;
   float cheapest;
   float a[arraySize] = { 14.60, 15.50, 53.20, 44.80, 48.60, 12.65, 21.20, 32.50, 51.20, 17.50, 12.65, 14.60, 15.50, 53.20, 44.80, 48.60, 21.20, 32.50, 51.20, 17.50 };

   cheapest = a[0];
   for(int i = 1; i < arraySize; i++)
   {
      if(cheapest > a[i])
      {
         cheapest = a[i];
      }
   }

   cout << "Cheapest candy cost " << cheapest << "grn" << endl;

   return 0;
}

0,0(0 оценок)
Ответ:
123451499
14.09.2022 22:18
//Pascal ABC.NET 3.1 сборка 1219

uses
 system,system.Windows.Forms;

Var
 dat:DateTime;
 myForm:Form;
 myButton:Button;
 myTextBox:TextBox;

 procedure MyButtonClick(sender:Object;e:EventArgs);
  begin {при каждом нажатии на кнопку значение dat обновляется и выводится в текстовое поле}
 dat:=datetime.Now;
 myTextBox.Text:=dat.ToString;
 end;
 begin
  myForm:=new Form; //создание объекта - формы
   myform.Left:=500;
   myform.top:=500;
   myform.AutoSize:=true;
   myform.Width:=300;
   myform.Height:=100;
  myTextBox:=new TextBox; //создание объекта - текстового поля
  myTextBox.Left:=80;
   myTextBox.Top:=40;
   myTextBox.Enabled:=true;
   myTextBox.Width:=105;
   myTextBox.Height:=100;
   myTextBox.MaxLength:=16;
   myTextBox.ReadOnly:=false;
   myTextBox.Visible:=true;
  myButton:=new Button; //создание объекта - кнопки
   myButton.Text:='Now';
   myButton.Left:=80;
   myButton.top:=80;
   myButton.AutoSize:=true;
   myForm.Controls.Add(myButton); //вешаем на форму кнопку и поле
   myForm.Controls.Add(myTextBox);
   myButton.click+=MyButtonClick; //присваиваем событие при нажатии на кнопку
   Application.Run(myForm);
end.
0,0(0 оценок)
Полный доступ
Позволит учиться лучше и быстрее. Неограниченный доступ к базе и ответам от экспертов и ai-bota Оформи подписку
logo
Начни делиться знаниями
Вход Регистрация
Что ты хочешь узнать?
Спроси ai-бота