1.
#pragma endregion
2.
private: System::Void Form1_Load(System::Object^ sender,
System::EventArgs^ e) {
3.
this->Text = "Sodda figurali shakillar chizish";
4.
listBox1->Items->AddRange(gcnew array
5.
"To'g'ri to'rtburchak",
"Sektor", "Matn", "Ellips", "Bo'yalgan
sektor",
6.
"Ot rasmi","Funksiya grafigi"}); }
7.
void Fun_gra(){ float x,y;
8.
Graphics^Figura=this->CreateGraphics();
9.
Pen^Qalam= gcnew Pen(Color::Red);
10.
Pen^qalam= gcnew Pen(Color::Black);
11.
Brush^MQalam =gcnew SolidBrush(Color::Red);
120
Oybek Mallayev
12.
Figura->DrawLine(qalam,0,250,400,250);
13.
Figura->DrawLine(qalam,200,0,200,800);
14.
Figura->DrawString("0",Font,MQalam,200,250);
15.
Figura->DrawString("-1",Font,MQalam,160,250);
16.
Figura->DrawString("1",Font,MQalam,240,250); x=-1;
17.
do
{ y=(x-3)/(x*x+2);
18.
Point l=Point(100+(x*100),100-(y*100));
Do'stlaringiz bilan baham: |