murakkab kalkulyator yaratish

DOCX 6 sahifa 32,8 KB Bepul yuklash

Sahifa ko'rinishi (5 sahifa)

Pastga aylantiring 👇
1 / 6
o’zbekiston respublikasi axborot texnologiyalari va kamunikatsiyalarini rivojlantirish vazirligi muhammad al-xorazmiy nomidagi toshkent axborot texnologiyalari universiteti farg’ona filliali kafedra: axborot-kommunikatsiya texnologiyalari sohasida kasb ta’limi dasturlash 2 fannidan 2-diedline guruh: 621- guruh talabasi. bajardi: raxmataliyev f tekshirdi: ermatova z farg’ona – 2023 murakkab kankulyator yaratish? kod qismi. //--------------------------------------------------------------------------- #include #include #pragma hdrstop #include "unitk.h" //--------------------------------------------------------------------------- #pragma package(smart_init) #pragma resource "*.dfm" tform1 *form1; string s1,s2; char c; //--------------------------------------------------------------------------- __fastcall tform1::tform1(tcomponent* owner) : tform(owner) { } //--------------------------------------------------------------------------- void __fastcall tform1::button3click(tobject *sender) { edit1->text=edit1->text+"7"; } //--------------------------------------------------------------------------- void __fastcall tform1::button9click(tobject *sender) { edit1->text=edit1->text+"8"; } //--------------------------------------------------------------------------- void __fastcall tform1::button14click(tobject *sender) { edit1->text=edit1->text+"9"; } //--------------------------------------------------------------------------- void __fastcall tform1::button4click(tobject *sender) { edit1->text=edit1->text+"4"; } //--------------------------------------------------------------------------- void __fastcall tform1::button10click(tobject *sender) { edit1->text=edit1->text+"5"; } //--------------------------------------------------------------------------- void __fastcall tform1::button15click(tobject *sender) { edit1->text=edit1->text+"6"; } //--------------------------------------------------------------------------- void __fastcall tform1::button5click(tobject *sender) { edit1-
2 / 6
>text=edit1->text+"1"; } //--------------------------------------------------------------------------- void __fastcall tform1::button11click(tobject *sender) { edit1->text=edit1->text+"2"; } //--------------------------------------------------------------------------- void __fastcall tform1::button16click(tobject *sender) { edit1->text=edit1->text+"3"; } //--------------------------------------------------------------------------- void __fastcall tform1::button6click(tobject *sender) { edit1->text=edit1->text+"0"; } //--------------------------------------------------------------------------- void __fastcall tform1::button23click(tobject *sender) { s1=edit1->text; c='+'; edit1->text=""; } //--------------------------------------------------------------------------- void __fastcall tform1::button22click(tobject *sender) { s1=edit1->text; c='-'; edit1->text=""; } //--------------------------------------------------------------------------- void __fastcall tform1::button21click(tobject *sender) { s1=edit1->text; c='*'; edit1->text=""; } //--------------------------------------------------------------------------- void __fastcall tform1::button20click(tobject *sender) { s1=edit1->text; c='/'; edit1->text=""; } //--------------------------------------------------------------------------- void __fastcall tform1::button27click(tobject *sender) { s2=edit1->text; double a,b,rez; a=strtofloat(s1); b=strtofloat(s2); if(c=='+') rez=a+b; else if(c=='-') rez=a-b; else if(c=='*') rez=a*b; else if(c=='/') rez=a/b; edit1->text=floattostr(rez); } //--------------------------------------------------------------------------- void __fastcall tform1::button13click(tobject *sender) { edit1->text=""; } //--------------------------------------------------------------------------- void __fastcall tform1::button24click(tobject *sender) { double a,rez; a=strtofloat(edit1->text); rez=sqrt(a); edit1->text=floattostr(rez); } //----------------------------------------------------------------------
3 / 6
----- void __fastcall tform1::button25click(tobject *sender) { double a,rez; a=strtofloat(edit1->text); rez=a*10/100; edit1->text=floattostr(rez); } //--------------------------------------------------------------------------- void __fastcall tform1::button26click(tobject *sender) { double a,rez; a=strtofloat(edit1->text); rez=1/a; edit1->text=floattostr(rez); } //--------------------------------------------------------------------------- image1.png image2.png
4 / 6
murakkab kalkulyator yaratish - Page 4
5 / 6
murakkab kalkulyator yaratish - Page 5

Ko'proq o'qimoqchimisiz?

Barcha 6 sahifani Telegram orqali bepul yuklab oling.

To'liq faylni yuklab olish

"murakkab kalkulyator yaratish" haqida

o’zbekiston respublikasi axborot texnologiyalari va kamunikatsiyalarini rivojlantirish vazirligi muhammad al-xorazmiy nomidagi toshkent axborot texnologiyalari universiteti farg’ona filliali kafedra: axborot-kommunikatsiya texnologiyalari sohasida kasb ta’limi dasturlash 2 fannidan 2-diedline guruh: 621- guruh talabasi. bajardi: raxmataliyev f tekshirdi: ermatova z farg’ona – 2023 murakkab kankulyator yaratish? kod qismi. //--------------------------------------------------------------------------- #include #include #pragma hdrstop #include "unitk.h" //--------------------------------------------------------------------------- #pragma package(smart_init) #pragma resource "*.dfm" tform1 *form1; string s1,s2; char c; //-------------------------------------------------------------------------...

Bu fayl DOCX formatida 6 sahifadan iborat (32,8 KB). "murakkab kalkulyator yaratish"ni yuklab olish uchun chap tomondagi Telegram tugmasini bosing.

Teglar: murakkab kalkulyator yaratish DOCX 6 sahifa Bepul yuklash Telegram