当前位置:文档之家› 学生成绩管理系统设计说明书

学生成绩管理系统设计说明书

设计说明一.本程序的设计思路与体系简述:(1)设计思路:Ⅰ.设计程序预期功能;Ⅱ.确定程序语言与运行环境;Ⅲ.设计程序的整体结构;Ⅳ.用模块化的理念对各个小的功能进行编写并进行初期调试;Ⅴ.将各个小的模块集合成整体,形成真正的功能全面的程序;Ⅵ.对程序进行总的调试修改;Ⅶ.后期完善,修复bug等,以及对新功能的引入,外包处理,最终完成整个程序的设计。

(2)本程序的体系:二.相关代码(1)初始化窗口代码:#pragma once#include"StuMan.h"namespace StudentManagement {using namespace System;using namespace System::ComponentModel;using namespace System::Collections;using namespace System::Windows::Forms;using namespace System::Data;using namespace System::Drawing;/// <summary>/// Form1 摘要////// 警告: 如果更改此类的名称,则需要更改/// 与此类所依赖的所有 .resx 文件关联的托管资源编译器工具的/// “资源文件名”属性。

否则,/// 设计器将不能与此窗体的关联/// 本地化资源正确交互。

/// </summary>public ref class Form1 : public System::Windows::Forms::Form{public:Form1(void){InitializeComponent();////TODO: 在此处添加构造函数代码//}protected:/// <summary>/// 清理所有正在使用的资源。

/// </summary>~Form1(){if (components){delete components;}}private: System::Windows::Forms::Button^ button1;protected:private: System::Windows::Forms::ListView^ listView1;private: System::Windows::Forms::Label^ label1;private:/// <summary>/// 必需的设计器变量。

/// </summary>System::ComponentModel::Container ^components;#pragma region Windows Form Designer generated code/// <summary>/// 设计器支持所需的方法 - 不要/// 使用代码编辑器修改此方法的内容。

/// </summary>void InitializeComponent(void){System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(Form1::typeid));this->button1 = (gcnew System::Windows::Forms::Button());this->listView1 = (gcnew System::Windows::Forms::ListView());this->label1 = (gcnew System::Windows::Forms::Label());this->SuspendLayout();//// button1//this->button1->Location = System::Drawing::Point(24, 115);this->button1->Name = L"button1";this->button1->Size = System::Drawing::Size(75, 23);this->button1->TabIndex = 0;this->button1->Text = L"学生管理";this->button1->UseVisualStyleBackColor = true;this->button1->Click += gcnew System::EventHandler(this,&Form1::button1_Click);//// listView1//this->listView1->BackgroundImage =(cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"listView1.BackgroundI mage")));this->listView1->Location = System::Drawing::Point(131, 22);this->listView1->Name = L"listView1";this->listView1->Size = System::Drawing::Size(140, 135);this->listView1->TabIndex = 3;this->listView1->UseCompatibleStateImageBehavior = false;//// label1//this->label1->AutoSize = true;this->label1->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,static_cast<System::Byte>(134)));this->label1->Location = System::Drawing::Point(156, 176);this->label1->Name = L"label1";this->label1->Size = System::Drawing::Size(105, 120);this->label1->TabIndex = 4;this->label1->Text = L"Copyright by\r\n西北工业大学\r\n 机电学院 \r\n 高岭\r\n\r\n\r\n";//// Form1//this->AutoScaleDimensions = System::Drawing::SizeF(6, 12);this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;this->ClientSize = System::Drawing::Size(292, 266);this->Controls->Add(this->label1);this->Controls->Add(this->listView1);this->Controls->Add(this->button1);this->Icon =(cli::safe_cast<System::Drawing::Icon^ >(resources->GetObject(L"$this.Icon")));this->MaximizeBox = false;this->Name = L"Form1";this->StartPosition =System::Windows::Forms::FormStartPosition::CenterScreen;this->Text = L"学生管理系统";this->Load += gcnew System::EventHandler(this, &Form1::Form1_Load);this->ResumeLayout(false);this->PerformLayout();}#pragma endregionprivate: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) { }private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { StuMan^stuMan=gcnew StuMan;stuMan->ShowDialog();this->Close();}};}(2)主界面代码#pragma once#include"Find.h"#include"Add.h"#include"AddClass.h"#include"Del.h"#include"Upda.h"#include"UpdaScore.h"#include"UpdaClass.h"using namespace System;using namespace System::ComponentModel;using namespace System::Collections;using namespace System::Windows::Forms;using namespace System::Data;using namespace System::Drawing;using namespace System::Data::OleDb;namespace StudentManagement {/// <summary>/// StuMan 摘要////// 警告: 如果更改此类的名称,则需要更改/// 与此类所依赖的所有 .resx 文件关联的托管资源编译器工具的/// “资源文件名”属性。

相关主题