資源簡介
a. 輸入多位同學的成績(名字/成績(key/value)),輸出平均成績、最高成績等,并且根據用戶輸入的姓名輸出該學生的成績(輸入名字不對給出提示(ContainsKey()))。(哈希表、泛型排序列表等多種方式實現)。
b. 在windows窗體中進行輸入和輸出,輸入出錯時能給出提示。
對數據庫中表進行讀寫。在退出程序前先將輸入的成績存入score.mdb中的表score(或自定數據庫與表)中,下次再輸入時先從數據庫中讀出已有的成績。

代碼片段和文件信息
//------------------------------------------------------------------------------
//?
//?????此代碼由工具生成。
//?????運行時版本:4.0.30319.18449
//
//?????對此文件的更改可能會導致不正確的行為,并且如果
//?????重新生成代碼,這些更改將會丟失。
//?
//------------------------------------------------------------------------------
#pragma?warning?disable?1591
namespace?WindowsFormsApplication4?{
????
????
????///?
????///Represents?a?strongly?typed?in-memory?cache?of?data.
????///
????[global::System.Serializable()]
????[global::System.ComponentModel.DesignerCategoryAttribute(“code“)]
????[global::System.ComponentModel.ToolboxItem(true)]
????[global::System.xml.Serialization.xmlSchemaProviderAttribute(“GetTypedDataSetSchema“)]
????[global::System.xml.Serialization.xmlRootAttribute(“Database1DataSet“)]
????[global::System.ComponentModel.Design.HelpKeywordAttribute(“vs.data.DataSet“)]
????public?partial?class?Database1DataSet?:?global::System.Data.DataSet?{
????????
????????private?Table_1DataTable?tableTable_1;
????????
????????private?global::System.Data.SchemaSerializationMode?_schemaSerializationMode?=?global::System.Data.SchemaSerializationMode.IncludeSchema;
????????
????????[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
????????[global::System.CodeDom.Compiler.GeneratedCodeAttribute(“System.Data.Design.TypedDataSetGenerator“?“4.0.0.0“)]
????????public?Database1DataSet()?{
????????????this.BeginInit();
????????????this.InitClass();
????????????global::System.ComponentModel.CollectionchangeEventHandler?schemaChangedHandler?=?new?global::System.ComponentModel.CollectionchangeEventHandler(this.SchemaChanged);
????????????base.Tables.Collectionchanged?+=?schemaChangedHandler;
????????????base.Relations.Collectionchanged?+=?schemaChangedHandler;
????????????this.EndInit();
????????}
????????
????????[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
????????[global::System.CodeDom.Compiler.GeneratedCodeAttribute(“System.Data.Design.TypedDataSetGenerator“?“4.0.0.0“)]
????????protected?Database1DataSet(global::System.Runtime.Serialization.SerializationInfo?info?global::System.Runtime.Serialization.StreamingContext?context)?:?
????????????????base(info?context?false)?{
????????????if?((this.IsBinarySerialized(info?context)?==?true))?{
????????????????this.InitVars(false);
????????????????global::System.ComponentModel.CollectionchangeEventHandler?schemaChangedHandler1?=?new?global::System.ComponentModel.CollectionchangeEventHandler(this.SchemaChanged);
????????????????this.Tables.Collectionchanged?+=?schemaChangedHandler1;
????????????????this.Relations.Collectionchanged?+=?schemaChangedHandler1;
????????????????return;
????????????}
????????????string?strSchema?=?((string)(info.GetValue(“xmlSchema“?typeof(string))));
????????????if?((this.DetermineSchemaSerializationMode(info?context)?==?global::System.Data.SchemaSerializationMode.IncludeSchema))?{
????????????????global::
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2015-10-17?12:01??Hash表\
?????目錄???????????0??2015-11-16?21:09??Hash表\WindowsFormsApplication4\
?????目錄???????????0??2015-11-16?21:09??Hash表\WindowsFormsApplication4\WindowsFormsApplication4\
?????文件???????79513??2015-10-17?10:50??Hash表\WindowsFormsApplication4\WindowsFormsApplication4\Databa
?????文件???????????3??2015-10-17?10:50??Hash表\WindowsFormsApplication4\WindowsFormsApplication4\Databa
?????文件????????9335??2015-10-17?10:50??Hash表\WindowsFormsApplication4\WindowsFormsApplication4\Databa
?????文件???????????3??2015-10-17?10:50??Hash表\WindowsFormsApplication4\WindowsFormsApplication4\Databa
?????文件????????9625??2015-10-14?21:00??Hash表\WindowsFormsApplication4\WindowsFormsApplication4\Form1.Designer.cs
?????文件????????2461??2015-10-17?11:48??Hash表\WindowsFormsApplication4\WindowsFormsApplication4\Form1.cs
?????文件????????5817??2015-10-14?20:57??Hash表\WindowsFormsApplication4\WindowsFormsApplication4\Form1.resx
?????文件????????1354??2015-10-17?11:13??Hash表\WindowsFormsApplication4\WindowsFormsApplication4\Program.cs
?????目錄???????????0??2015-11-16?21:09??Hash表\WindowsFormsApplication4\WindowsFormsApplication4\Properties\
?????文件????????1410??2015-10-14?20:54??Hash表\WindowsFormsApplication4\WindowsFormsApplication4\Properties\AssemblyInfo.cs
?????文件????????2900??2015-10-14?20:54??Hash表\WindowsFormsApplication4\WindowsFormsApplication4\Properties\Resources.Designer.cs
?????文件????????5612??2015-10-14?20:54??Hash表\WindowsFormsApplication4\WindowsFormsApplication4\Properties\Resources.resx
?????文件????????1715??2015-10-17?10:50??Hash表\WindowsFormsApplication4\WindowsFormsApplication4\Properties\Settings.Designer.cs
?????文件????????1002??2015-10-17?10:50??Hash表\WindowsFormsApplication4\WindowsFormsApplication4\Properties\Settings.settings
?????文件????????4376??2015-10-17?11:06??Hash表\WindowsFormsApplication4\WindowsFormsApplication4\WindowsFormsApplication4.csproj
?????文件?????????421??2015-10-17?10:50??Hash表\WindowsFormsApplication4\WindowsFormsApplication4\app.config
?????目錄???????????0??2015-10-17?10:50??Hash表\WindowsFormsApplication4\WindowsFormsApplication4\bin\
?????目錄???????????0??2015-11-16?21:09??Hash表\WindowsFormsApplication4\WindowsFormsApplication4\bin\Debug\
?????文件???????40448??2015-10-17?11:48??Hash表\WindowsFormsApplication4\WindowsFormsApplication4\bin\Debug\WindowsFormsApplication4.exe
?????文件?????????421??2015-10-17?10:50??Hash表\WindowsFormsApplication4\WindowsFormsApplication4\bin\Debug\WindowsFormsApplication4.exe.config
?????文件???????81408??2015-10-17?11:48??Hash表\WindowsFormsApplication4\WindowsFormsApplication4\bin\Debug\WindowsFormsApplication4.pdb
?????文件???????11600??2015-10-17?11:56??Hash表\WindowsFormsApplication4\WindowsFormsApplication4\bin\Debug\WindowsFormsApplication4.vshost.exe
?????文件?????????421??2015-10-17?10:50??Hash表\WindowsFormsApplication4\WindowsFormsApplication4\bin\Debug\WindowsFormsApplication4.vshost.exe.config
?????目錄???????????0??2015-11-16?21:10??Hash表\WindowsFormsApplication4\WindowsFormsApplication4\bin\Release\
?????目錄???????????0??2015-10-14?21:18??Hash表\WindowsFormsApplication4\WindowsFormsApplication4\obj\
?????目錄???????????0??2015-10-14?21:18??Hash表\WindowsFormsApplication4\WindowsFormsApplication4\obj\x86\
?????目錄???????????0??2015-11-16?21:09??Hash表\WindowsFormsApplication4\WindowsFormsApplication4\obj\x86\Debug\
?????文件????????5420??2015-10-17?10:30??Hash表\WindowsFormsApplication4\WindowsFormsApplication4\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
............此處省略54個文件信息
評論
共有 條評論