91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 56KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2021-05-25
  • 語言: C#
  • 標簽:

資源簡介

操作系統實驗 動態分區分配模擬系統 可詳細模擬內存分配情況 此系統用C#編寫 .NET 環境下運行

資源截圖

代碼片段和文件信息

using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Windows.Forms;
using?System.IO;
using?System.Collections;


namespace?OPTEST3
{
????public?partial?class?Form1?:?Form
????{
????????JOB[]?job;
????????DataGridViewCellstyle?dgvcs_full=new?DataGridViewCellstyle()?;//
????????DataGridViewCellstyle??dgvcs_empty=new?DataGridViewCellstyle()?;//

????????public?Form1()
????????{
????????????InitializeComponent();
????????}

????????private?void?Form1_Load(object?sender?EventArgs?e)//初始化內存
????????{
????????????DataGridViewTextBoxColumn?dgc?=?new?DataGridViewTextBoxColumn();
????????????dgc.Width?=?122;
????????????dgv_memory.Columns.Add(dgc);
????????????for?(int?i?=?0;?i?????????????????dgv_memory.Rows.Add();
????????????dgv_memory.Rows[0].Selected?=?false;
????????????lb_allocinfo.Text?=?“初始化內存為100B“;
????????????initColor();
????????}
????????///?
????????///?
????????///?


????????private?void?importFile()//導入文件
????????{
????????????if?(openFileDialog.ShowDialog()?==?DialogResult.OK)
????????????{
????????????????StreamReader?sr?=?new?StreamReader(openFileDialog.FileName);
????????????????string?sLine?=?““;
????????????????ArrayList?arrText?=?new?ArrayList();
????????????????while?(sLine?!=?null)
????????????????{
????????????????????sLine?=?sr.ReadLine();
????????????????????if?(sLine?!=?null)
????????????????????????arrText.Add(sLine);
????????????????}
????????????????sr.Close();
????????????????String[]?value?=?new?String[2];

????????????????job?=?new?JOB[arrText.Count];

????????????????for?(int?i?=?0;?i?????????????????{
????????????????????value?=?arrText[i].ToString().Split(‘?‘);
????????????????????job[i]?=?new?JOB();
????????????????????job[i].JID?=?value[0];
????????????????????job[i].Allocsize?=?Convert.ToInt32(value?[1]);
????????????????????
????????????????????dgv_job.Rows.Add();
????????????????????dgv_job.Rows[i].Cells[0].Value?=?value[0];
????????????????????dgv_job.Rows[i].Cells[1].Value?=?value[1];
????????????????}
????????????}
????????}

????????private?void?sortByOffset()//按照始址將空閑區排序
????????{
????????????dgv_empty.Sort(dgv_empty?.Columns[“offset“]ListSortDirection.Ascending?);
????????}

????????private?void?sortBySize()//按照空閑區大小排序
????????{
????????????dgv_empty.Sort(dgv_empty.Columns[“size“]?ListSortDirection.Ascending);
????????????int?l=0;
????????????for?(;?l?????????????{
????????????????int?a?=?Convert.ToInt32(dgv_empty.Rows[l].Cells[1].Value);
????????????????int?b?=?Convert.ToInt32(dgv_empty.Rows[l?+?1].Cells[1].Value);
????????????????int?c?=?Convert.ToInt32(dgv_empty.Rows[l].Cells[0].Value);
????????????????int?d?=?Convert.ToInt32(dgv_empty.Rows[l?+?1].Cells[0].Value);
????????????????int?e;
????????????????if?(a?==?b)
??

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件??????22528??2010-05-04?23:19??OPTEST3\OPTEST3\bin\Debug\OPTEST3.exe

?????文件??????36352??2010-05-04?23:19??OPTEST3\OPTEST3\bin\Debug\OPTEST3.pdb

?????文件??????14328??2010-05-11?23:01??OPTEST3\OPTEST3\bin\Debug\OPTEST3.vshost.exe

?????文件????????490??2009-06-11?05:14??OPTEST3\OPTEST3\bin\Debug\OPTEST3.vshost.exe.manifest

?????文件??????14360??2010-05-04?23:19??OPTEST3\OPTEST3\Form1.cs

?????文件??????24783??2010-05-04?23:03??OPTEST3\OPTEST3\Form1.Designer.cs

?????文件???????7490??2010-05-04?23:03??OPTEST3\OPTEST3\Form1.resx

?????文件????????540??2010-05-11?23:01??OPTEST3\OPTEST3\obj\Debug\OPTEST3.csproj.FileListAbsolute.txt

?????文件????????847??2010-05-04?23:04??OPTEST3\OPTEST3\obj\Debug\OPTEST3.csproj.GenerateResource.Cache

?????文件??????22528??2010-05-04?23:19??OPTEST3\OPTEST3\obj\Debug\OPTEST3.exe

?????文件????????180??2010-05-04?23:04??OPTEST3\OPTEST3\obj\Debug\OPTEST3.Form1.resources

?????文件??????36352??2010-05-04?23:19??OPTEST3\OPTEST3\obj\Debug\OPTEST3.pdb

?????文件????????180??2010-04-24?23:33??OPTEST3\OPTEST3\obj\Debug\OPTEST3.Properties.Resources.resources

?????文件???????3725??2010-04-24?23:33??OPTEST3\OPTEST3\OPTEST3.csproj

?????文件????????488??2010-04-24?23:13??OPTEST3\OPTEST3\Program.cs

?????文件???????1346??2010-04-24?23:13??OPTEST3\OPTEST3\Properties\AssemblyInfo.cs

?????文件???????2864??2010-04-24?23:13??OPTEST3\OPTEST3\Properties\Resources.Designer.cs

?????文件???????5612??2010-04-24?23:13??OPTEST3\OPTEST3\Properties\Resources.resx

?????文件???????1092??2010-04-24?23:13??OPTEST3\OPTEST3\Properties\Settings.Designer.cs

?????文件????????249??2010-04-24?23:13??OPTEST3\OPTEST3\Properties\Settings.settings

?????文件????????911??2010-04-24?23:13??OPTEST3\OPTEST3.sln

????..A..H.?????14848??2010-05-11?23:59??OPTEST3\OPTEST3.suo

?????文件?????????98??2010-05-03?17:48??OPTEST3\實驗三測試數據.txt

?????文件?????????79??2010-05-20?18:30??OPTEST3\聯系作者.txt

?????目錄??????????0??2010-04-24?23:22??OPTEST3\OPTEST3\obj\Debug\Refactor

?????目錄??????????0??2010-04-24?23:13??OPTEST3\OPTEST3\obj\Debug\TempPE

?????目錄??????????0??2010-04-24?23:33??OPTEST3\OPTEST3\bin\Debug

?????目錄??????????0??2010-05-04?23:19??OPTEST3\OPTEST3\obj\Debug

?????目錄??????????0??2010-04-24?23:13??OPTEST3\OPTEST3\bin

?????目錄??????????0??2010-04-24?23:13??OPTEST3\OPTEST3\obj

............此處省略6個文件信息

評論

共有 條評論