, Visual C#



39.1. .

// -:

private: static const int x_max = 20;

private: static const int y_max = 20;

private: static const int x_min = -10;

private: static const int y_min = -10;

private: System::Void pictureBox1_Paint(

System::Object^ sender,

System::Windows::Forms::PaintEventArgs^ e)

{

// Graphics pictureBox1.

// :

float M_1 = 31; float M_2 = 29;

e->Graphics->ScaleTransform(

Convert::ToSingle(pictureBox1->Width / M_1),

Convert::ToSingle(-pictureBox1->Height / M_2),

MatrixOrder::Append);

float M_3 = 1.9f;

float M_4 = 1.7f;

e->Graphics->TranslateTransform(

Convert::ToSingle(pictureBox1->Width / M_3),

Convert::ToSingle(pictureBox1->Height / M_4),

MatrixOrder::Append);

// M_1, M_2, M_3, M_4 ,

// - x,y,z.

// myArrayVC(i, j):

int i, j;

// , "i":

int N_1_myArray, N_2_myArray, N_3_myArray;

// myArrayVC(i, j):

int N_x = 2001;

int N_y = 2;

// myArrayVC(i, j) float,

// i = 0,1,2,3,...,(N_x - 1);

// j = 0,1,2,3,...,(N_y - 1):

array<float,2>^ myArrayVC =

gcnew array<float,2>(N_x, N_y);

// D:\\MyDocs\\MyTest.txt

// myArrayVC[2001, 2]

// sr StreamReader:

String^ path = "D:\\MyDocs\\MyTest.txt";

StreamReader^ sr =

gcnew StreamReader(path);

// MyTest.txt

// myArrayVC(2001, 2) ReadLine:




- -  - -  - -