Добавлен: 02.04.2023
Просмотров: 459
Скачиваний: 1
СОДЕРЖАНИЕ
1 Теоретические основы организации работы с файлами в MS Visual C++
1.1 Организация работы с файлами средствами C++
1.2 Возможности компонента RichTextBox по работе с файлами
2 Разработка электронного учебника по курсу JavaScript
2.1 Логическая структура приложения
2.4 Разработка программного кода
this->лабораторнаяРабота4ToolStripMenuItem->Name = L"лабораторнаяРабота4ToolStripMenuItem";
this->лабораторнаяРабота4ToolStripMenuItem->Size = System::Drawing::Size(162, 22);
this->лабораторнаяРабота4ToolStripMenuItem->Text = L"Задание № 4";
this->лабораторнаяРабота4ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::лабораторнаяРабота4ToolStripMenuItem_Click);
this->лабораторнаяРабота5ToolStripMenuItem->Name = L"лабораторнаяРабота5ToolStripMenuItem";
this->лабораторнаяРабота5ToolStripMenuItem->Size = System::Drawing::Size(162, 22);
this->лабораторнаяРабота5ToolStripMenuItem->Text = L"Задание № 5";
this->лабораторнаяРабота5ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::лабораторнаяРабота5ToolStripMenuItem_Click);
this->лабораторнаяРабота6ToolStripMenuItem->Name = L"лабораторнаяРабота6ToolStripMenuItem";
this->лабораторнаяРабота6ToolStripMenuItem->Size = System::Drawing::Size(162, 22);
this->лабораторнаяРабота6ToolStripMenuItem->Text = L"Задание № 6";
this->лабораторнаяРабота6ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::лабораторнаяРабота6ToolStripMenuItem_Click);
this->лабораторнаяРабота7ToolStripMenuItem->Name = L"лабораторнаяРабота7ToolStripMenuItem";
this->лабораторнаяРабота7ToolStripMenuItem->Size = System::Drawing::Size(162, 22);
this->лабораторнаяРабота7ToolStripMenuItem->Text = L"Задание № 7";
this->лабораторнаяРабота7ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::лабораторнаяРабота7ToolStripMenuItem_Click);
this->лабораторнаяРабота8ToolStripMenuItem->Name = L"лабораторнаяРабота8ToolStripMenuItem";
this->лабораторнаяРабота8ToolStripMenuItem->Size = System::Drawing::Size(162, 22);
this->лабораторнаяРабота8ToolStripMenuItem->Text = L"Задание № 8";
this->лабораторнаяРабота8ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::лабораторнаяРабота8ToolStripMenuItem_Click);
this->лабораторнаяРабота9ToolStripMenuItem->Name = L"лабораторнаяРабота9ToolStripMenuItem";
this->лабораторнаяРабота9ToolStripMenuItem->Size = System::Drawing::Size(162, 22);
this->лабораторнаяРабота9ToolStripMenuItem->Text = L"Задание № 9";
this->лабораторнаяРабота9ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::лабораторнаяРабота9ToolStripMenuItem_Click);
this->лабораторнаяРабота10ToolStripMenuItem->Name = L"лабораторнаяРабота10ToolStripMenuItem";
this->лабораторнаяРабота10ToolStripMenuItem->Size = System::Drawing::Size(162, 22);
this->лабораторнаяРабота10ToolStripMenuItem->Text = L"Задание № 10";
this->лабораторнаяРабота10ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::лабораторнаяРабота10ToolStripMenuItem_Click);
this->лабораторнаяРабота11ToolStripMenuItem->Name = L"лабораторнаяРабота11ToolStripMenuItem";
this->лабораторнаяРабота11ToolStripMenuItem->Size = System::Drawing::Size(162, 22);
this->лабораторнаяРабота11ToolStripMenuItem->Text = L"Задание № 11";
this->лабораторнаяРабота11ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::лабораторнаяРабота11ToolStripMenuItem_Click);
this->лабораторнаяРабота12ToolStripMenuItem->Name = L"лабораторнаяРабота12ToolStripMenuItem";
this->лабораторнаяРабота12ToolStripMenuItem->Size = System::Drawing::Size(162, 22);
this->лабораторнаяРабота12ToolStripMenuItem->Text = L"Задание № 12";
this->лабораторнаяРабота12ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::лабораторнаяРабота12ToolStripMenuItem_Click);
this->лабораторнаяРабота13ToolStripMenuItem->Name = L"лабораторнаяРабота13ToolStripMenuItem";
this->лабораторнаяРабота13ToolStripMenuItem->Size = System::Drawing::Size(162, 22);
this->лабораторнаяРабота13ToolStripMenuItem->Text = L"Задание № 13";
this->лабораторнаяРабота13ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::лабораторнаяРабота13ToolStripMenuItem_Click);
this->лабораторнаяРабота14ToolStripMenuItem->Name = L"лабораторнаяРабота14ToolStripMenuItem";
this->лабораторнаяРабота14ToolStripMenuItem->Size = System::Drawing::Size(162, 22);
this->лабораторнаяРабота14ToolStripMenuItem->Text = L"Задание № 14";
this->лабораторнаяРабота14ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::лабораторнаяРабота14ToolStripMenuItem_Click);
this->лабораторнаяРабота15ToolStripMenuItem->Name = L"лабораторнаяРабота15ToolStripMenuItem";
this->лабораторнаяРабота15ToolStripMenuItem->Size = System::Drawing::Size(162, 22);
this->лабораторнаяРабота15ToolStripMenuItem->Text = L"Задание № 15";
this->лабораторнаяРабота15ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::лабораторнаяРабота15ToolStripMenuItem_Click);
this->контрольToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(3) {this->тест1ToolStripMenuItem,
this->тест2ToolStripMenuItem, this->тест3ToolStripMenuItem});
this->контрольToolStripMenuItem->Name = L"контрольToolStripMenuItem";
this->контрольToolStripMenuItem->Size = System::Drawing::Size(50, 20);
this->контрольToolStripMenuItem->Text = L"Тесты";
this->тест1ToolStripMenuItem->Name = L"тест1ToolStripMenuItem";
this->тест1ToolStripMenuItem->Size = System::Drawing::Size(133, 22);
this->тест1ToolStripMenuItem->Text = L"Тест № 1";
this->тест1ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::тест1ToolStripMenuItem_Click);
this->тест2ToolStripMenuItem->Name = L"тест2ToolStripMenuItem";
this->тест2ToolStripMenuItem->Size = System::Drawing::Size(133, 22);
this->тест2ToolStripMenuItem->Text = L"Тест № 2";
this->тест2ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::тест2ToolStripMenuItem_Click);
this->тест3ToolStripMenuItem->Name = L"тест3ToolStripMenuItem";
this->тест3ToolStripMenuItem->Size = System::Drawing::Size(133, 22);
this->тест3ToolStripMenuItem->Text = L"Тест № 3";
this->тест3ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::тест3ToolStripMenuItem_Click);
this->оПрограммеToolStripMenuItem->Name = L"оПрограммеToolStripMenuItem";
this->оПрограммеToolStripMenuItem->Size = System::Drawing::Size(83, 20);
this->оПрограммеToolStripMenuItem->Text = L"О программе";
this->оПрограммеToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::оПрограммеToolStripMenuItem_Click);
this->выходToolStripMenuItem->Name = L"выходToolStripMenuItem";
this->выходToolStripMenuItem->Size = System::Drawing::Size(52, 20);
this->выходToolStripMenuItem->Text = L"Выход";
this->выходToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::выходToolStripMenuItem_Click_1);
this->richTextBox1->BackColor = System::Drawing::Color::LightCyan;
this->richTextBox1->ForeColor = System::Drawing::Color::Maroon;
this->richTextBox1->Location = System::Drawing::Point(12, 31);
this->richTextBox1->Name = L"richTextBox1";
this->richTextBox1->ScrollBars = System::Windows::Forms::RichTextBoxScrollBars::Vertical;
this->richTextBox1->Size = System::Drawing::Size(751, 416);
this->richTextBox1->TabIndex = 1;
this->richTextBox1->Text = L"";
this->richTextBox1->LinkClicked += gcnew System::Windows::Forms::LinkClickedEventHandler(this, &Form1::richTextBox1_LinkClicked);
this->richTextBox2->BackColor = System::Drawing::Color::LightCyan;
this->richTextBox2->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(204)));
this->richTextBox2->ForeColor = System::Drawing::Color::Maroon;
this->richTextBox2->Location = System::Drawing::Point(26, 53);
this->richTextBox2->Name = L"richTextBox2";
this->richTextBox2->Size = System::Drawing::Size(724, 102);
this->richTextBox2->TabIndex = 7;
this->richTextBox2->Text = L"";
this->button1->Location = System::Drawing::Point(616, 388);
this->button1->Name = L"button1";
this->button1->Size = System::Drawing::Size(123, 41);
this->button1->TabIndex = 6;
this->button1->Text = L"Далее";
this->button1->UseVisualStyleBackColor = true;
this->button1->Click += gcnew System::EventHandler(this, &Form1::button1_Click);
this->radioButton4->AutoSize = true;
this->radioButton4->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 11.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(204)));
this->radioButton4->ForeColor = System::Drawing::Color::Maroon;
this->radioButton4->Location = System::Drawing::Point(105, 303);
this->radioButton4->Name = L"radioButton4";
this->radioButton4->Size = System::Drawing::Size(14, 13);
this->radioButton4->TabIndex = 5;
this->radioButton4->TabStop = true;
this->radioButton4->UseVisualStyleBackColor = true;
this->radioButton3->AutoSize = true;
this->radioButton3->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 11.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(204)));
this->radioButton3->ForeColor = System::Drawing::Color::Maroon;
this->radioButton3->Location = System::Drawing::Point(105, 264);
this->radioButton3->Name = L"radioButton3";
this->radioButton3->Size = System::Drawing::Size(14, 13);
this->radioButton3->TabIndex = 4;
this->radioButton3->TabStop = true;
this->radioButton3->UseVisualStyleBackColor = true;
this->radioButton2->AutoSize = true;
this->radioButton2->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 11.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(204)));
this->radioButton2->ForeColor = System::Drawing::Color::Maroon;
this->radioButton2->Location = System::Drawing::Point(105, 227);
this->radioButton2->Name = L"radioButton2";
this->radioButton2->Size = System::Drawing::Size(14, 13);
this->radioButton2->TabIndex = 3;
this->radioButton2->TabStop = true;
this->radioButton2->UseVisualStyleBackColor = true;
this->radioButton1->AutoSize = true;
this->radioButton1->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 11.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(204)));
this->radioButton1->ForeColor = System::Drawing::Color::Maroon;
this->radioButton1->Location = System::Drawing::Point(105, 190);
this->radioButton1->Name = L"radioButton1";
this->radioButton1->Size = System::Drawing::Size(14, 13);
this->radioButton1->TabIndex = 2;
this->radioButton1->TabStop = true;
this->radioButton1->UseVisualStyleBackColor = true;
this->label1->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(204)));
this->label1->Location = System::Drawing::Point(57, 348);
this->label1->Name = L"label1";
this->label1->Size = System::Drawing::Size(412, 37);
this->label1->TabIndex = 8;
this->button2->Location = System::Drawing::Point(22, 19);
this->button2->Name = L"button2";
this->button2->Size = System::Drawing::Size(206, 35);
this->button2->TabIndex = 9;
this->button2->Text = L"Лекция по JavaScript № 1";
this->button2->UseVisualStyleBackColor = true;
this->button2->Click += gcnew System::EventHandler(this, &Form1::button2_Click_1);
this->button3->Location = System::Drawing::Point(22, 57);
this->button3->Name = L"button3";
this->button3->Size = System::Drawing::Size(206, 35);
this->button3->TabIndex = 10;
this->button3->Text = L"Лекция по JavaScript № 2";
this->button3->UseVisualStyleBackColor = true;
this->button3->Click += gcnew System::EventHandler(this, &Form1::button3_Click_1);
this->button4->Location = System::Drawing::Point(22, 95);
this->button4->Name = L"button4";
this->button4->Size = System::Drawing::Size(206, 35);
this->button4->TabIndex = 11;
this->button4->Text = L"Лекция по JavaScript № 3";
this->button4->UseVisualStyleBackColor = true;
this->button4->Click += gcnew System::EventHandler(this, &Form1::button4_Click);
this->button5->Location = System::Drawing::Point(22, 134);
this->button5->Name = L"button5";
this->button5->Size = System::Drawing::Size(206, 35);
this->button5->TabIndex = 12;
this->button5->Text = L"Лекция по JavaScript № 4";
this->button5->UseVisualStyleBackColor = true;
this->button5->Click += gcnew System::EventHandler(this, &Form1::button5_Click);
this->button6->Location = System::Drawing::Point(22, 175);
this->button6->Name = L"button6";
this->button6->Size = System::Drawing::Size(206, 35);
this->button6->TabIndex = 13;
this->button6->Text = L"Лекция по JavaScript № 5";
this->button6->UseVisualStyleBackColor = true;
this->button6->Click += gcnew System::EventHandler(this, &Form1::button6_Click);
this->button7->Location = System::Drawing::Point(22, 216);
this->button7->Name = L"button7";
this->button7->Size = System::Drawing::Size(206, 35);
this->button7->TabIndex = 14;
this->button7->Text = L"Лекция по JavaScript № 6";
this->button7->UseVisualStyleBackColor = true;
this->button7->Click += gcnew System::EventHandler(this, &Form1::button7_Click);
this->button8->Location = System::Drawing::Point(22, 257);
this->button8->Name = L"button8";
this->button8->Size = System::Drawing::Size(206, 35);
this->button8->TabIndex = 15;
this->button8->Text = L"Лекция по JavaScript № 7";
this->button8->UseVisualStyleBackColor = true;
this->button8->Click += gcnew System::EventHandler(this, &Form1::button8_Click);
this->button9->Location = System::Drawing::Point(22, 298);
this->button9->Name = L"button9";
this->button9->Size = System::Drawing::Size(206, 35);
this->button9->TabIndex = 16;
this->button9->Text = L"Лекция по JavaScript № 8";
this->button9->UseVisualStyleBackColor = true;
this->button9->Click += gcnew System::EventHandler(this, &Form1::button9_Click);
this->button10->Location = System::Drawing::Point(22, 339);
this->button10->Name = L"button10";
this->button10->Size = System::Drawing::Size(206, 35);
this->button10->TabIndex = 17;
this->button10->Text = L"Лекция по JavaScript № 9";
this->button10->UseVisualStyleBackColor = true;
this->button10->Click += gcnew System::EventHandler(this, &Form1::button10_Click);
this->groupBox1->Controls->Add(this->button10);
this->groupBox1->Controls->Add(this->button9);
this->groupBox1->Controls->Add(this->button8);
this->groupBox1->Controls->Add(this->button7);
this->groupBox1->Controls->Add(this->button6);
this->groupBox1->Controls->Add(this->button5);
this->groupBox1->Controls->Add(this->button4);
this->groupBox1->Controls->Add(this->button3);
this->groupBox1->Controls->Add(this->button2);
this->groupBox1->ForeColor = System::Drawing::Color::MediumBlue;
this->groupBox1->Location = System::Drawing::Point(26, 53);
this->groupBox1->Name = L"groupBox1";
this->groupBox1->Size = System::Drawing::Size(247, 394);
this->groupBox1->TabIndex = 10;
this->groupBox1->TabStop = false;
this->groupBox1->Text = L"Теория";
this->button19->Location = System::Drawing::Point(6, 19);
this->button19->Name = L"button19";
this->button19->Size = System::Drawing::Size(105, 35);
this->button19->TabIndex = 9;
this->button19->Text = L"Задание № 1";
this->button19->UseVisualStyleBackColor = true;
this->button19->Click += gcnew System::EventHandler(this, &Form1::button19_Click);
this->button18->Location = System::Drawing::Point(6, 57);
this->button18->Name = L"button18";
this->button18->Size = System::Drawing::Size(105, 35);
this->button18->TabIndex = 10;
this->button18->Text = L"Задание № 2";
this->button18->UseVisualStyleBackColor = true;
this->button18->Click += gcnew System::EventHandler(this, &Form1::button18_Click);
this->button17->Location = System::Drawing::Point(6, 96);
this->button17->Name = L"button17";
this->button17->Size = System::Drawing::Size(105, 35);
this->button17->TabIndex = 11;
this->button17->Text = L"Задание № 3";
this->button17->UseVisualStyleBackColor = true;
this->button17->Click += gcnew System::EventHandler(this, &Form1::button17_Click);
this->button16->Location = System::Drawing::Point(6, 135);
this->button16->Name = L"button16";
this->button16->Size = System::Drawing::Size(105, 35);
this->button16->TabIndex = 12;
this->button16->Text = L"Задание № 4";
this->button16->UseVisualStyleBackColor = true;
this->button16->Click += gcnew System::EventHandler(this, &Form1::button16_Click);
this->button25->Location = System::Drawing::Point(117, 57);
this->button25->Name = L"button25";
this->button25->Size = System::Drawing::Size(105, 35);
this->button25->TabIndex = 12;
this->button25->Text = L"Задание № 10";
this->button25->UseVisualStyleBackColor = true;
this->button25->Click += gcnew System::EventHandler(this, &Form1::button25_Click);
this->button15->Location = System::Drawing::Point(6, 177);
this->button15->Name = L"button15";
this->button15->Size = System::Drawing::Size(105, 35);
this->button15->TabIndex = 13;
this->button15->Text = L"Задание № 5";
this->button15->UseVisualStyleBackColor = true;
this->button15->Click += gcnew System::EventHandler(this, &Form1::button15_Click);
this->button24->Location = System::Drawing::Point(117, 96);
this->button24->Name = L"button24";
this->button24->Size = System::Drawing::Size(105, 35);
this->button24->TabIndex = 13;
this->button24->Text = L"Задание № 11";
this->button24->UseViмsualStyleBackColor = true;
this->button24->Click += gcnew System::EventHandler(this, &Form1::button24_Click);
this->button14->Location = System::Drawing::Point(6, 217);