mainform

PDF 7 стр. 306,7 КБ Бесплатная загрузка

Предварительный просмотр (5 стр.)

Прокрутите вниз 👇
1 / 7
20-varyant bajardi: abdiraxmonova jasmina sharafiddinovna tekshirdi: ishniyazov odil toshkent 2024 2005 yil 15 - oktabr #include "stdafx.h" #include #include #include #include namespace yourprojectname { using namespace system; using namespace system::windows::forms; using namespace system::drawing; using namespace system::collections::generic; public ref class mainform : public system::windows::forms::form { public: mainform(void) { initializecomponent(); } protected: ~mainform() { if (components) { delete components; } } private: system::windows::forms::button^ buttonshowgraph; private: system::windows::forms::picturebox^ pictureboxgraph; private: system::windows::forms::label^ labeltitle; private: system::windows::forms::label^ labeldescription; private: system::componentmodel::container^ components; #pragma region windows form designer generated code void initializecomponent(void) { this->buttonshowgraph = (gcnew system::windows::forms::button()); this->pictureboxgraph = (gcnew system::windows::forms::picturebox()); this->labeltitle = (gcnew system::windows::forms::label()); this->labeldescription = (gcnew system::windows::forms::label()); (cli::safe_cast (this- >pictureboxgraph))->begininit(); this->suspendlayout(); // // buttonshowgraph // this->buttonshowgraph->location = system::drawing::point(51, 206); this->buttonshowgraph->name = l"buttonshowgraph"; this->buttonshowgraph->size = system::drawing::size(167, 23); this->buttonshowgraph->tabindex = 0; this->buttonshowgraph->text = l"show graph"; this->buttonshowgraph->usevisualstylebackcolor = true; this->buttonshowgraph->click += gcnew system::eventhandler(this, &mainform::buttonshowgraph_click); // // pictureboxgraph // this->pictureboxgraph->location = system::drawing::point(51, 47); this->pictureboxgraph->name = l"pictureboxgraph"; this->pictureboxgraph->size = system::drawing::size(300, 150); this->pictureboxgraph->tabindex …
2 / 7
>autosize = true; this->labeltitle->location = system::drawing::point(48, 20); this->labeltitle->name = l"labeltitle"; this->labeltitle->size = system::drawing::size(60, 13); this->labeltitle->tabindex = 2; this->labeltitle->text = l"graph title"; // // labeldescription // this->labeldescription->autosize = true; this->labeldescription->location = system::drawing::point(48, 253); this->labeldescription->name = l"labeldescription"; this->labeldescription->size = system::drawing::size(91, 13); this->labeldescription->tabindex = 3; this->labeldescription->text = l"graph description"; // // mainform // this->autoscaledimensions = system::drawing::sizef(6, 13); this->autoscalemode = system::windows::forms::autoscalemode::font; this->clientsize = system::drawing::size(384, 311); this->controls->add(this->labeldescription); this->controls->add(this->labeltitle); this->controls->add(this->pictureboxgraph); this->controls->add(this->buttonshowgraph); this->name = l"mainform"; this->text = l"graph display"; (cli::safe_cast (this- >pictureboxgraph))->endinit(); this->resumelayout(false); this->performlayout(); } #pragma endregion private: system::void buttonshowgraph_click(system::object^ sender, system::eventargs^ e) { // grafikning o'lchamini aniqlash uchun foydalaniladigan sonlar // misol uchun yillar va narxlar olish uchun ma'lumotlar olish std::vector years; std::vector prices; // yillar va narxlarni fayldan olish std::ifstream file("data.txt"); if (file.is_open()) { std::string line; while (std::getline(file, line)) { std::istringstream iss(line); int year, price; if (iss >> year >> price) { years.push_back(year); prices.push_back(price); } } file.close(); } // grafikni yaratish drawgraph(years, prices); } void …
3 / 7
mainform - Page 3
4 / 7
mainform - Page 4
5 / 7
mainform - Page 5

Хотите читать дальше?

Скачайте все 7 страниц бесплатно через Telegram.

Скачать полный файл

О "mainform"

20-varyant bajardi: abdiraxmonova jasmina sharafiddinovna tekshirdi: ishniyazov odil toshkent 2024 2005 yil 15 - oktabr #include "stdafx.h" #include #include #include #include namespace yourprojectname { using namespace system; using namespace system::windows::forms; using namespace system::drawing; using namespace system::collections::generic; public ref class mainform : public system::windows::forms::form { public: mainform(void) { initializecomponent(); } protected: ~mainform() { if (components) { delete components; } } private: system::windows::forms::button^ buttonshowgraph; private: system::windows::forms::picturebox^ pictureboxgraph; private: system::windows::forms::label^ labeltitle; private: system::windows::forms::label^ labeldescription; private: system::componentmodel::containe...

Этот файл содержит 7 стр. в формате PDF (306,7 КБ). Чтобы скачать "mainform", нажмите кнопку Telegram слева.

Теги: mainform PDF 7 стр. Бесплатная загрузка Telegram