Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Hypo
EE-Codes-of-SCNU
提交
61dbed86
E
EE-Codes-of-SCNU
项目概览
Hypo
/
EE-Codes-of-SCNU
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
2
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
EE-Codes-of-SCNU
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
2
Issue
2
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
61dbed86
编写于
6月 08, 2018
作者:
HypoX64
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Commit Java , C#
上级
7771e4c7
变更
35
展开全部
隐藏空白更改
内联
并排
Showing
35 changed file
with
1688 addition
and
0 deletion
+1688
-0
C#/calculator/calculator/.vs/calculator/v15/.suo
C#/calculator/calculator/.vs/calculator/v15/.suo
+0
-0
C#/calculator/calculator/.vs/calculator/v15/Server/sqlite3/db.lock
...ator/calculator/.vs/calculator/v15/Server/sqlite3/db.lock
+0
-0
C#/calculator/calculator/.vs/calculator/v15/Server/sqlite3/storage.ide
.../calculator/.vs/calculator/v15/Server/sqlite3/storage.ide
+0
-0
C#/calculator/calculator/calculator.sln
C#/calculator/calculator/calculator.sln
+25
-0
C#/calculator/calculator/calculator/App.config
C#/calculator/calculator/calculator/App.config
+6
-0
C#/calculator/calculator/calculator/Form1.Designer.cs
C#/calculator/calculator/calculator/Form1.Designer.cs
+507
-0
C#/calculator/calculator/calculator/Form1.cs
C#/calculator/calculator/calculator/Form1.cs
+338
-0
C#/calculator/calculator/calculator/Form1.resx
C#/calculator/calculator/calculator/Form1.resx
+120
-0
C#/calculator/calculator/calculator/Program.cs
C#/calculator/calculator/calculator/Program.cs
+22
-0
C#/calculator/calculator/calculator/Properties/AssemblyInfo.cs
...lculator/calculator/calculator/Properties/AssemblyInfo.cs
+36
-0
C#/calculator/calculator/calculator/Properties/Resources.Designer.cs
...or/calculator/calculator/Properties/Resources.Designer.cs
+71
-0
C#/calculator/calculator/calculator/Properties/Resources.resx
...alculator/calculator/calculator/Properties/Resources.resx
+117
-0
C#/calculator/calculator/calculator/Properties/Settings.Designer.cs
...tor/calculator/calculator/Properties/Settings.Designer.cs
+30
-0
C#/calculator/calculator/calculator/Properties/Settings.settings
...ulator/calculator/calculator/Properties/Settings.settings
+7
-0
C#/calculator/calculator/calculator/bin/Debug/calculator.application
...or/calculator/calculator/bin/Debug/calculator.application
+21
-0
C#/calculator/calculator/calculator/bin/Debug/calculator.exe.config
...tor/calculator/calculator/bin/Debug/calculator.exe.config
+6
-0
C#/calculator/calculator/calculator/bin/Debug/calculator.exe.manifest
...r/calculator/calculator/bin/Debug/calculator.exe.manifest
+65
-0
C#/calculator/calculator/calculator/calculator.csproj
C#/calculator/calculator/calculator/calculator.csproj
+124
-0
C#/calculator/calculator/calculator/calculator.csproj.user
C#/calculator/calculator/calculator/calculator.csproj.user
+16
-0
C#/calculator/calculator/calculator/calculator_TemporaryKey.pfx
...culator/calculator/calculator/calculator_TemporaryKey.pfx
+0
-0
C#/calculator/calculator/calculator/obj/Debug/DesignTimeResolveAssemblyReferences.cache
...lator/obj/Debug/DesignTimeResolveAssemblyReferences.cache
+0
-0
C#/calculator/calculator/calculator/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
.../obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
+0
-0
C#/calculator/calculator/calculator/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
...raryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
+0
-0
C#/calculator/calculator/calculator/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
...raryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
+0
-0
C#/calculator/calculator/calculator/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
...raryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
+0
-0
C#/calculator/calculator/calculator/obj/Debug/calculator.Form1.resources
...alculator/calculator/obj/Debug/calculator.Form1.resources
+0
-0
C#/calculator/calculator/calculator/obj/Debug/calculator.Properties.Resources.resources
...lator/obj/Debug/calculator.Properties.Resources.resources
+0
-0
C#/calculator/calculator/calculator/obj/Debug/calculator.application
...or/calculator/calculator/obj/Debug/calculator.application
+21
-0
C#/calculator/calculator/calculator/obj/Debug/calculator.csproj.CoreCompileInputs.cache
...lator/obj/Debug/calculator.csproj.CoreCompileInputs.cache
+1
-0
C#/calculator/calculator/calculator/obj/Debug/calculator.csproj.FileListAbsolute.txt
...lculator/obj/Debug/calculator.csproj.FileListAbsolute.txt
+28
-0
C#/calculator/calculator/calculator/obj/Debug/calculator.csproj.GenerateResource.Cache
...ulator/obj/Debug/calculator.csproj.GenerateResource.Cache
+0
-0
C#/calculator/calculator/calculator/obj/Debug/calculator.csprojResolveAssemblyReference.cache
...obj/Debug/calculator.csprojResolveAssemblyReference.cache
+0
-0
C#/calculator/calculator/calculator/obj/Debug/calculator.exe.manifest
...r/calculator/calculator/obj/Debug/calculator.exe.manifest
+65
-0
Java/sort/README.md
Java/sort/README.md
+16
-0
Java/sort/sort.java
Java/sort/sort.java
+46
-0
未找到文件。
C#/calculator/calculator/.vs/calculator/v15/.suo
0 → 100644
浏览文件 @
61dbed86
文件已添加
C#/calculator/calculator/.vs/calculator/v15/Server/sqlite3/db.lock
0 → 100644
浏览文件 @
61dbed86
C#/calculator/calculator/.vs/calculator/v15/Server/sqlite3/storage.ide
0 → 100644
浏览文件 @
61dbed86
文件已添加
C#/calculator/calculator/calculator.sln
0 → 100644
浏览文件 @
61dbed86
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27130.2036
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "calculator", "calculator\calculator.csproj", "{DF39D86B-12EA-438B-8945-EBEE281E01F1}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{DF39D86B-12EA-438B-8945-EBEE281E01F1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DF39D86B-12EA-438B-8945-EBEE281E01F1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DF39D86B-12EA-438B-8945-EBEE281E01F1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DF39D86B-12EA-438B-8945-EBEE281E01F1}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {5DC48A42-32F7-49AD-BE66-06FFEA6969E1}
EndGlobalSection
EndGlobal
C#/calculator/calculator/calculator/App.config
0 → 100644
浏览文件 @
61dbed86
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
configuration
>
<
startup
>
<
supportedRuntime
version
=
"v4.0"
sku
=
".NETFramework,Version=v4.6.1"
/>
</
startup
>
</
configuration
>
\ No newline at end of file
C#/calculator/calculator/calculator/Form1.Designer.cs
0 → 100644
浏览文件 @
61dbed86
此差异已折叠。
点击以展开。
C#/calculator/calculator/calculator/Form1.cs
0 → 100644
浏览文件 @
61dbed86
using
System
;
using
System.Collections.Generic
;
using
System.ComponentModel
;
using
System.Data
;
using
System.Drawing
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
using
System.Windows.Forms
;
namespace
calculator
{
public
partial
class
Form1
:
Form
{
int
flag_sym
=
0
;
int
flag_equ
=
0
;
int
flag_err
=
0
;
int
flag_dot
=
0
;
public
Form1
()
{
this
.
BackColor
=
Color
.
White
;
this
.
TransparencyKey
=
Color
.
White
;
this
.
Opacity
=
0.9
;
//窗体透明度调整
InitializeComponent
();
}
private
void
shownum
(
String
str
)
//输入栏显示方法
{
if
(
lab1
.
Text
.
Length
>
10
)
//不能输入超过10个数
{
}
else
{
if
(
flag_equ
==
1
)
//如果一直按等于号,防止程序卡死
{
lab1
.
Text
=
lab1
.
Text
+
str
;
flag_equ
=
0
;
}
else
{
if
((
lab1
.
Text
)
!=
"0"
||
str
==
"."
)
//如果输入栏为零进行处理的判断
{
lab1
.
Text
=
lab1
.
Text
+
str
;
}
else
{
lab1
.
Text
=
str
;
}
}
}
}
private
void
showsymbol
(
String
str
)
//符号栏显示方法
{
if
(
flag_sym
==
0
)
{
lab2
.
Text
=
str
;
lab3
.
Text
=
lab1
.
Text
;
lab1
.
Text
=
"0"
;
}
else
{
lab2
.
Text
=
str
;
}
flag_sym
++;
flag_dot
=
0
;
flag_equ
=
0
;
}
private
void
button0_Click
(
object
sender
,
EventArgs
e
)
{
shownum
(
"0"
);
}
private
void
button1_Click
(
object
sender
,
EventArgs
e
)
{
shownum
(
"1"
);
}
private
void
button2_Click
(
object
sender
,
EventArgs
e
)
{
shownum
(
"2"
);
}
private
void
button3_Click
(
object
sender
,
EventArgs
e
)
{
shownum
(
"3"
);
}
private
void
button4_Click
(
object
sender
,
EventArgs
e
)
{
shownum
(
"4"
);
}
private
void
button5_Click
(
object
sender
,
EventArgs
e
)
{
shownum
(
"5"
);
}
private
void
button6_Click
(
object
sender
,
EventArgs
e
)
{
shownum
(
"6"
);
}
private
void
button7_Click
(
object
sender
,
EventArgs
e
)
{
shownum
(
"7"
);
}
private
void
button8_Click
(
object
sender
,
EventArgs
e
)
{
shownum
(
"8"
);
}
private
void
button9_Click
(
object
sender
,
EventArgs
e
)
{
shownum
(
"9"
);
}
private
void
button_add_Click
(
object
sender
,
EventArgs
e
)
{
showsymbol
(
"+"
);
}
private
void
button_sub_Click
(
object
sender
,
EventArgs
e
)
{
showsymbol
(
"-"
);
}
private
void
button_mul_Click
(
object
sender
,
EventArgs
e
)
{
showsymbol
(
"×"
);
}
private
void
button_div_Click
(
object
sender
,
EventArgs
e
)
{
showsymbol
(
"÷"
);
}
private
void
button_equal_Click
(
object
sender
,
EventArgs
e
)
{
flag_sym
=
0
;
if
(
lab3
.
Text
==
""
)
{
flag_equ
=
1
;
}
else
{
double
input1
=
Convert
.
ToDouble
(
lab3
.
Text
.
Trim
());
double
input2
=
Convert
.
ToDouble
(
lab1
.
Text
.
Trim
());
double
output
=
0.0
;
switch
(
lab2
.
Text
)
{
case
"+"
:
output
=
input1
+
input2
;
break
;
case
"-"
:
output
=
input1
-
input2
;
break
;
case
"×"
:
output
=
input1
*
input2
;
break
;
case
"÷"
:
output
=
input1
/
input2
;
if
(
input2
==
0
)
{
flag_err
=
1
;
}
break
;
default
:
break
;
}
if
(
flag_err
==
0
)
{
lab_history1
.
Text
=
lab3
.
Text
+
" "
+
lab2
.
Text
+
" "
+
lab1
.
Text
+
" "
+
"="
;
lab_history2
.
Text
=
output
.
ToString
();
lab1
.
Text
=
output
.
ToString
();
lab2
.
Text
=
""
;
lab3
.
Text
=
""
;
}
else
{
MessageBox
.
Show
(
"这怎么可能有结果?!"
);
lab1
.
Text
=
""
;
lab2
.
Text
=
""
;
lab3
.
Text
=
""
;
flag_err
=
0
;
}
flag_equ
=
1
;
flag_dot
=
0
;
}
}
private
void
button_dot_Click
(
object
sender
,
EventArgs
e
)
{
if
(
flag_dot
==
0
)
{
shownum
(
"."
);
flag_dot
=
1
;
}
}
private
void
button_pm_Click
(
object
sender
,
EventArgs
e
)
{
double
input1
=
Convert
.
ToDouble
(
lab1
.
Text
);
input1
=
0
-
input1
;
lab1
.
Text
=
input1
.
ToString
();
}
private
void
button_del_Click
(
object
sender
,
EventArgs
e
)
{
if
(
lab1
.
Text
.
Length
==
1
)
{
lab1
.
Text
=
"0"
;
}
else
{
lab1
.
Text
=
lab1
.
Text
.
Remove
(
lab1
.
Text
.
Length
-
1
);
}
}
private
void
button_c_Click
(
object
sender
,
EventArgs
e
)
{
lab1
.
Text
=
"0"
;
lab2
.
Text
=
""
;
lab3
.
Text
=
""
;
flag_sym
=
0
;
flag_equ
=
0
;
flag_err
=
0
;
flag_dot
=
0
;
}
private
void
button_ce_Click
(
object
sender
,
EventArgs
e
)
{
lab1
.
Text
=
"0"
;
lab2
.
Text
=
""
;
lab3
.
Text
=
""
;
flag_sym
=
0
;
flag_equ
=
0
;
flag_err
=
0
;
flag_dot
=
0
;
}
private
void
Form1_KeyPress
(
object
sender
,
KeyPressEventArgs
e
)
{
switch
(
e
.
KeyChar
)
{
case
'0'
:
button0
.
PerformClick
();
e
.
Handled
=
true
;
break
;
case
'1'
:
button1
.
PerformClick
();
e
.
Handled
=
true
;
break
;
case
'2'
:
button2
.
PerformClick
();
e
.
Handled
=
true
;
break
;
case
'3'
:
button3
.
PerformClick
();
e
.
Handled
=
true
;
break
;
case
'4'
:
button4
.
PerformClick
();
e
.
Handled
=
true
;
break
;
case
'5'
:
button5
.
PerformClick
();
e
.
Handled
=
true
;
break
;
case
'6'
:
button6
.
PerformClick
();
e
.
Handled
=
true
;
break
;
case
'7'
:
button7
.
PerformClick
();
e
.
Handled
=
true
;
break
;
case
'8'
:
button8
.
PerformClick
();
e
.
Handled
=
true
;
break
;
case
'9'
:
button9
.
PerformClick
();
e
.
Handled
=
true
;
break
;
case
'+'
:
button_add
.
PerformClick
();
e
.
Handled
=
true
;
break
;
case
'-'
:
button_sub
.
PerformClick
();
e
.
Handled
=
true
;
break
;
case
'*'
:
button_mul
.
PerformClick
();
e
.
Handled
=
true
;
break
;
case
'/'
:
button_div
.
PerformClick
();
e
.
Handled
=
true
;
break
;
case
'\b'
:
button_del
.
PerformClick
();
e
.
Handled
=
true
;
break
;
case
'.'
:
button_dot
.
PerformClick
();
e
.
Handled
=
true
;
break
;
case
'c'
:
button_c
.
PerformClick
();
e
.
Handled
=
true
;
break
;
case
(
char
)
10
:
button_equal
.
PerformClick
();
e
.
Handled
=
true
;
break
;
default
:
break
;
}
}
private
void
lab_history2_Click
(
object
sender
,
EventArgs
e
)
{
lab1
.
Text
=
lab_history2
.
Text
;
}
}
}
C#/calculator/calculator/calculator/Form1.resx
0 → 100644
浏览文件 @
61dbed86
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema
id=
"root"
xmlns=
""
xmlns:xsd=
"http://www.w3.org/2001/XMLSchema"
xmlns:msdata=
"urn:schemas-microsoft-com:xml-msdata"
>
<xsd:import
namespace=
"http://www.w3.org/XML/1998/namespace"
/>
<xsd:element
name=
"root"
msdata:IsDataSet=
"true"
>
<xsd:complexType>
<xsd:choice
maxOccurs=
"unbounded"
>
<xsd:element
name=
"metadata"
>
<xsd:complexType>
<xsd:sequence>
<xsd:element
name=
"value"
type=
"xsd:string"
minOccurs=
"0"
/>
</xsd:sequence>
<xsd:attribute
name=
"name"
use=
"required"
type=
"xsd:string"
/>
<xsd:attribute
name=
"type"
type=
"xsd:string"
/>
<xsd:attribute
name=
"mimetype"
type=
"xsd:string"
/>
<xsd:attribute
ref=
"xml:space"
/>
</xsd:complexType>
</xsd:element>
<xsd:element
name=
"assembly"
>
<xsd:complexType>
<xsd:attribute
name=
"alias"
type=
"xsd:string"
/>
<xsd:attribute
name=
"name"
type=
"xsd:string"
/>
</xsd:complexType>
</xsd:element>
<xsd:element
name=
"data"
>
<xsd:complexType>
<xsd:sequence>
<xsd:element
name=
"value"
type=
"xsd:string"
minOccurs=
"0"
msdata:Ordinal=
"1"
/>
<xsd:element
name=
"comment"
type=
"xsd:string"
minOccurs=
"0"
msdata:Ordinal=
"2"
/>
</xsd:sequence>
<xsd:attribute
name=
"name"
type=
"xsd:string"
use=
"required"
msdata:Ordinal=
"1"
/>
<xsd:attribute
name=
"type"
type=
"xsd:string"
msdata:Ordinal=
"3"
/>
<xsd:attribute
name=
"mimetype"
type=
"xsd:string"
msdata:Ordinal=
"4"
/>
<xsd:attribute
ref=
"xml:space"
/>
</xsd:complexType>
</xsd:element>
<xsd:element
name=
"resheader"
>
<xsd:complexType>
<xsd:sequence>
<xsd:element
name=
"value"
type=
"xsd:string"
minOccurs=
"0"
msdata:Ordinal=
"1"
/>
</xsd:sequence>
<xsd:attribute
name=
"name"
type=
"xsd:string"
use=
"required"
/>
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader
name=
"resmimetype"
>
<value>
text/microsoft-resx
</value>
</resheader>
<resheader
name=
"version"
>
<value>
2.0
</value>
</resheader>
<resheader
name=
"reader"
>
<value>
System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
</value>
</resheader>
<resheader
name=
"writer"
>
<value>
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
</value>
</resheader>
</root>
\ No newline at end of file
C#/calculator/calculator/calculator/Program.cs
0 → 100644
浏览文件 @
61dbed86
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Threading.Tasks
;
using
System.Windows.Forms
;
namespace
calculator
{
static
class
Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[
STAThread
]
static
void
Main
()
{
Application
.
EnableVisualStyles
();
Application
.
SetCompatibleTextRenderingDefault
(
false
);
Application
.
Run
(
new
Form1
());
}
}
}
C#/calculator/calculator/calculator/Properties/AssemblyInfo.cs
0 → 100644
浏览文件 @
61dbed86
using
System.Reflection
;
using
System.Runtime.CompilerServices
;
using
System.Runtime.InteropServices
;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[
assembly
:
AssemblyTitle
(
"calculator"
)]
[
assembly
:
AssemblyDescription
(
""
)]
[
assembly
:
AssemblyConfiguration
(
""
)]
[
assembly
:
AssemblyCompany
(
""
)]
[
assembly
:
AssemblyProduct
(
"calculator"
)]
[
assembly
:
AssemblyCopyright
(
"Copyright © 2018"
)]
[
assembly
:
AssemblyTrademark
(
""
)]
[
assembly
:
AssemblyCulture
(
""
)]
// 将 ComVisible 设置为 false 会使此程序集中的类型
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
//请将此类型的 ComVisible 特性设置为 true。
[
assembly
:
ComVisible
(
false
)]
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
[
assembly
:
Guid
(
"df39d86b-12ea-438b-8945-ebee281e01f1"
)]
// 程序集的版本信息由下列四个值组成:
//
// 主版本
// 次版本
// 生成号
// 修订号
//
// 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
// 方法是按如下所示使用“*”: :
// [assembly: AssemblyVersion("1.0.*")]
[
assembly
:
AssemblyVersion
(
"1.0.0.0"
)]
[
assembly
:
AssemblyFileVersion
(
"1.0.0.0"
)]
C#/calculator/calculator/calculator/Properties/Resources.Designer.cs
0 → 100644
浏览文件 @
61dbed86
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本: 4.0.30319.42000
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace
calculator.Properties
{
/// <summary>
/// 强类型资源类,用于查找本地化字符串等。
/// </summary>
// 此类是由 StronglyTypedResourceBuilder
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
// 若要添加或删除成员,请编辑 .ResX 文件,然后重新运行 ResGen
// (以 /str 作为命令选项),或重新生成 VS 项目。
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"System.Resources.Tools.StronglyTypedResourceBuilder"
,
"4.0.0.0"
)]
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
()]
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
internal
class
Resources
{
private
static
global
::
System
.
Resources
.
ResourceManager
resourceMan
;
private
static
global
::
System
.
Globalization
.
CultureInfo
resourceCulture
;
[
global
::
System
.
Diagnostics
.
CodeAnalysis
.
SuppressMessageAttribute
(
"Microsoft.Performance"
,
"CA1811:AvoidUncalledPrivateCode"
)]
internal
Resources
()
{
}
/// <summary>
/// 返回此类使用的缓存 ResourceManager 实例。
/// </summary>
[
global
::
System
.
ComponentModel
.
EditorBrowsableAttribute
(
global
::
System
.
ComponentModel
.
EditorBrowsableState
.
Advanced
)]
internal
static
global
::
System
.
Resources
.
ResourceManager
ResourceManager
{
get
{
if
((
resourceMan
==
null
))
{
global
::
System
.
Resources
.
ResourceManager
temp
=
new
global
::
System
.
Resources
.
ResourceManager
(
"calculator.Properties.Resources"
,
typeof
(
Resources
).
Assembly
);
resourceMan
=
temp
;
}
return
resourceMan
;
}
}
/// <summary>
/// 覆盖当前线程的 CurrentUICulture 属性
/// 使用此强类型的资源类的资源查找。
/// </summary>
[
global
::
System
.
ComponentModel
.
EditorBrowsableAttribute
(
global
::
System
.
ComponentModel
.
EditorBrowsableState
.
Advanced
)]
internal
static
global
::
System
.
Globalization
.
CultureInfo
Culture
{
get
{
return
resourceCulture
;
}
set
{
resourceCulture
=
value
;
}
}
}
}
C#/calculator/calculator/calculator/Properties/Resources.resx
0 → 100644
浏览文件 @
61dbed86
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema
id=
"root"
xmlns=
""
xmlns:xsd=
"http://www.w3.org/2001/XMLSchema"
xmlns:msdata=
"urn:schemas-microsoft-com:xml-msdata"
>
<xsd:element
name=
"root"
msdata:IsDataSet=
"true"
>
<xsd:complexType>
<xsd:choice
maxOccurs=
"unbounded"
>
<xsd:element
name=
"metadata"
>
<xsd:complexType>
<xsd:sequence>
<xsd:element
name=
"value"
type=
"xsd:string"
minOccurs=
"0"
/>
</xsd:sequence>
<xsd:attribute
name=
"name"
type=
"xsd:string"
/>
<xsd:attribute
name=
"type"
type=
"xsd:string"
/>
<xsd:attribute
name=
"mimetype"
type=
"xsd:string"
/>
</xsd:complexType>
</xsd:element>
<xsd:element
name=
"assembly"
>
<xsd:complexType>
<xsd:attribute
name=
"alias"
type=
"xsd:string"
/>
<xsd:attribute
name=
"name"
type=
"xsd:string"
/>
</xsd:complexType>
</xsd:element>
<xsd:element
name=
"data"
>
<xsd:complexType>
<xsd:sequence>
<xsd:element
name=
"value"
type=
"xsd:string"
minOccurs=
"0"
msdata:Ordinal=
"1"
/>
<xsd:element
name=
"comment"
type=
"xsd:string"
minOccurs=
"0"
msdata:Ordinal=
"2"
/>
</xsd:sequence>
<xsd:attribute
name=
"name"
type=
"xsd:string"
msdata:Ordinal=
"1"
/>
<xsd:attribute
name=
"type"
type=
"xsd:string"
msdata:Ordinal=
"3"
/>
<xsd:attribute
name=
"mimetype"
type=
"xsd:string"
msdata:Ordinal=
"4"
/>
</xsd:complexType>
</xsd:element>
<xsd:element
name=
"resheader"
>
<xsd:complexType>
<xsd:sequence>
<xsd:element
name=
"value"
type=
"xsd:string"
minOccurs=
"0"
msdata:Ordinal=
"1"
/>
</xsd:sequence>
<xsd:attribute
name=
"name"
type=
"xsd:string"
use=
"required"
/>
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader
name=
"resmimetype"
>
<value>
text/microsoft-resx
</value>
</resheader>
<resheader
name=
"version"
>
<value>
2.0
</value>
</resheader>
<resheader
name=
"reader"
>
<value>
System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
</value>
</resheader>
<resheader
name=
"writer"
>
<value>
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
</value>
</resheader>
</root>
\ No newline at end of file
C#/calculator/calculator/calculator/Properties/Settings.Designer.cs
0 → 100644
浏览文件 @
61dbed86
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace
calculator.Properties
{
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator"
,
"11.0.0.0"
)]
internal
sealed
partial
class
Settings
:
global
::
System
.
Configuration
.
ApplicationSettingsBase
{
private
static
Settings
defaultInstance
=
((
Settings
)(
global
::
System
.
Configuration
.
ApplicationSettingsBase
.
Synchronized
(
new
Settings
())));
public
static
Settings
Default
{
get
{
return
defaultInstance
;
}
}
}
}
C#/calculator/calculator/calculator/Properties/Settings.settings
0 → 100644
浏览文件 @
61dbed86
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile
xmlns=
"http://schemas.microsoft.com/VisualStudio/2004/01/settings"
CurrentProfile=
"(Default)"
>
<Profiles>
<Profile
Name=
"(Default)"
/>
</Profiles>
<Settings
/>
</SettingsFile>
C#/calculator/calculator/calculator/bin/Debug/calculator.application
0 → 100644
浏览文件 @
61dbed86
<?xml version="1.0" encoding="utf-8"?>
<asmv1:assembly
xsi:schemaLocation=
"urn:schemas-microsoft-com:asm.v1 assembly.adaptive.xsd"
manifestVersion=
"1.0"
xmlns:asmv1=
"urn:schemas-microsoft-com:asm.v1"
xmlns=
"urn:schemas-microsoft-com:asm.v2"
xmlns:asmv2=
"urn:schemas-microsoft-com:asm.v2"
xmlns:xrml=
"urn:mpeg:mpeg21:2003:01-REL-R-NS"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns:asmv3=
"urn:schemas-microsoft-com:asm.v3"
xmlns:dsig=
"http://www.w3.org/2000/09/xmldsig#"
xmlns:co.v1=
"urn:schemas-microsoft-com:clickonce.v1"
xmlns:co.v2=
"urn:schemas-microsoft-com:clickonce.v2"
>
<assemblyIdentity
name=
"calculator.application"
version=
"1.0.0.1"
publicKeyToken=
"0000000000000000"
language=
"neutral"
processorArchitecture=
"msil"
xmlns=
"urn:schemas-microsoft-com:asm.v1"
/>
<description
asmv2:publisher=
"calculator"
asmv2:product=
"calculator"
xmlns=
"urn:schemas-microsoft-com:asm.v1"
/>
<deployment
install=
"true"
mapFileExtensions=
"true"
/>
<compatibleFrameworks
xmlns=
"urn:schemas-microsoft-com:clickonce.v2"
>
<framework
targetVersion=
"4.6.1"
profile=
"Full"
supportedRuntime=
"4.0.30319"
/>
</compatibleFrameworks>
<dependency>
<dependentAssembly
dependencyType=
"install"
codebase=
"calculator.exe.manifest"
size=
"3424"
>
<assemblyIdentity
name=
"calculator.exe"
version=
"1.0.0.1"
publicKeyToken=
"0000000000000000"
language=
"neutral"
processorArchitecture=
"msil"
type=
"win32"
/>
<hash>
<dsig:Transforms>
<dsig:Transform
Algorithm=
"urn:schemas-microsoft-com:HashTransforms.Identity"
/>
</dsig:Transforms>
<dsig:DigestMethod
Algorithm=
"http://www.w3.org/2000/09/xmldsig#sha256"
/>
<dsig:DigestValue>
K4+Gcl8tl6Ifc1aYRjv65pqHnxAm/ucbZCie27SxSTk=
</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
</asmv1:assembly>
\ No newline at end of file
C#/calculator/calculator/calculator/bin/Debug/calculator.exe.config
0 → 100644
浏览文件 @
61dbed86
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
configuration
>
<
startup
>
<
supportedRuntime
version
=
"v4.0"
sku
=
".NETFramework,Version=v4.6.1"
/>
</
startup
>
</
configuration
>
\ No newline at end of file
C#/calculator/calculator/calculator/bin/Debug/calculator.exe.manifest
0 → 100644
浏览文件 @
61dbed86
<?xml version="1.0" encoding="utf-8"?>
<asmv1:assembly
xsi:schemaLocation=
"urn:schemas-microsoft-com:asm.v1 assembly.adaptive.xsd"
manifestVersion=
"1.0"
xmlns:asmv1=
"urn:schemas-microsoft-com:asm.v1"
xmlns=
"urn:schemas-microsoft-com:asm.v2"
xmlns:asmv2=
"urn:schemas-microsoft-com:asm.v2"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns:co.v1=
"urn:schemas-microsoft-com:clickonce.v1"
xmlns:asmv3=
"urn:schemas-microsoft-com:asm.v3"
xmlns:dsig=
"http://www.w3.org/2000/09/xmldsig#"
xmlns:co.v2=
"urn:schemas-microsoft-com:clickonce.v2"
>
<asmv1:assemblyIdentity
name=
"calculator.exe"
version=
"1.0.0.1"
publicKeyToken=
"0000000000000000"
language=
"neutral"
processorArchitecture=
"msil"
type=
"win32"
/>
<application
/>
<entryPoint>
<assemblyIdentity
name=
"calculator"
version=
"1.0.0.0"
language=
"neutral"
processorArchitecture=
"msil"
/>
<commandLine
file=
"calculator.exe"
parameters=
""
/>
</entryPoint>
<trustInfo>
<security>
<applicationRequestMinimum>
<PermissionSet
Unrestricted=
"true"
ID=
"Custom"
SameSite=
"site"
/>
<defaultAssemblyRequest
permissionSetReference=
"Custom"
/>
</applicationRequestMinimum>
<requestedPrivileges
xmlns=
"urn:schemas-microsoft-com:asm.v3"
>
<!--
UAC 清单选项
若想要更改 Windows 用户帐户控制级别,请
将 requestedExecutionLevel 节点替换为下述某项。
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />
若想要使用文件和注册表虚拟化以实现向后
兼容,请删除 requestedExecutionLevel 节点。
-->
<requestedExecutionLevel
level=
"asInvoker"
uiAccess=
"false"
/>
</requestedPrivileges>
</security>
</trustInfo>
<dependency>
<dependentOS>
<osVersionInfo>
<os
majorVersion=
"5"
minorVersion=
"1"
buildNumber=
"2600"
servicePackMajor=
"0"
/>
</osVersionInfo>
</dependentOS>
</dependency>
<dependency>
<dependentAssembly
dependencyType=
"preRequisite"
allowDelayedBinding=
"true"
>
<assemblyIdentity
name=
"Microsoft.Windows.CommonLanguageRuntime"
version=
"4.0.30319.0"
/>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly
dependencyType=
"install"
allowDelayedBinding=
"true"
codebase=
"calculator.exe"
size=
"20440"
>
<assemblyIdentity
name=
"calculator"
version=
"1.0.0.0"
language=
"neutral"
processorArchitecture=
"msil"
/>
<hash>
<dsig:Transforms>
<dsig:Transform
Algorithm=
"urn:schemas-microsoft-com:HashTransforms.Identity"
/>
</dsig:Transforms>
<dsig:DigestMethod
Algorithm=
"http://www.w3.org/2000/09/xmldsig#sha256"
/>
<dsig:DigestValue>
MMeucPA1u/PJ2NxB6a02KRP3LdqGe5zkTjIuCPsMkCE=
</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<file
name=
"calculator.exe.config"
size=
"189"
>
<hash>
<dsig:Transforms>
<dsig:Transform
Algorithm=
"urn:schemas-microsoft-com:HashTransforms.Identity"
/>
</dsig:Transforms>
<dsig:DigestMethod
Algorithm=
"http://www.w3.org/2000/09/xmldsig#sha256"
/>
<dsig:DigestValue>
rl5/qDc7Jz+tB+BIbOv9iMGPlRe6YJwrjmU09dnlPcs=
</dsig:DigestValue>
</hash>
</file>
</asmv1:assembly>
\ No newline at end of file
C#/calculator/calculator/calculator/calculator.csproj
0 → 100644
浏览文件 @
61dbed86
<?xml version="1.0" encoding="utf-8"?>
<Project
ToolsVersion=
"15.0"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
>
<Import
Project=
"$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props"
Condition=
"Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')"
/>
<PropertyGroup>
<Configuration
Condition=
" '$(Configuration)' == '' "
>
Debug
</Configuration>
<Platform
Condition=
" '$(Platform)' == '' "
>
AnyCPU
</Platform>
<ProjectGuid>
{DF39D86B-12EA-438B-8945-EBEE281E01F1}
</ProjectGuid>
<OutputType>
WinExe
</OutputType>
<RootNamespace>
calculator
</RootNamespace>
<AssemblyName>
calculator
</AssemblyName>
<TargetFrameworkVersion>
v4.6.1
</TargetFrameworkVersion>
<FileAlignment>
512
</FileAlignment>
<AutoGenerateBindingRedirects>
true
</AutoGenerateBindingRedirects>
<IsWebBootstrapper>
false
</IsWebBootstrapper>
<PublishUrl>
C:\Users\Hypo\Desktop\
</PublishUrl>
<Install>
true
</Install>
<InstallFrom>
Disk
</InstallFrom>
<UpdateEnabled>
false
</UpdateEnabled>
<UpdateMode>
Foreground
</UpdateMode>
<UpdateInterval>
7
</UpdateInterval>
<UpdateIntervalUnits>
Days
</UpdateIntervalUnits>
<UpdatePeriodically>
false
</UpdatePeriodically>
<UpdateRequired>
false
</UpdateRequired>
<MapFileExtensions>
true
</MapFileExtensions>
<AutorunEnabled>
true
</AutorunEnabled>
<ApplicationRevision>
1
</ApplicationRevision>
<ApplicationVersion>
1.0.0.%2a
</ApplicationVersion>
<UseApplicationTrust>
false
</UseApplicationTrust>
<PublishWizardCompleted>
true
</PublishWizardCompleted>
<BootstrapperEnabled>
true
</BootstrapperEnabled>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "
>
<PlatformTarget>
AnyCPU
</PlatformTarget>
<DebugSymbols>
true
</DebugSymbols>
<DebugType>
full
</DebugType>
<Optimize>
false
</Optimize>
<OutputPath>
bin\Debug\
</OutputPath>
<DefineConstants>
DEBUG;TRACE
</DefineConstants>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "
>
<PlatformTarget>
AnyCPU
</PlatformTarget>
<DebugType>
pdbonly
</DebugType>
<Optimize>
true
</Optimize>
<OutputPath>
bin\Release\
</OutputPath>
<DefineConstants>
TRACE
</DefineConstants>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<ManifestCertificateThumbprint>
F76B9389468A266367C079F5FC6EABAC403DDEF2
</ManifestCertificateThumbprint>
</PropertyGroup>
<PropertyGroup>
<ManifestKeyFile>
calculator_TemporaryKey.pfx
</ManifestKeyFile>
</PropertyGroup>
<PropertyGroup>
<GenerateManifests>
true
</GenerateManifests>
</PropertyGroup>
<PropertyGroup>
<SignManifests>
true
</SignManifests>
</PropertyGroup>
<ItemGroup>
<Reference
Include=
"System"
/>
<Reference
Include=
"System.Core"
/>
<Reference
Include=
"System.Xml.Linq"
/>
<Reference
Include=
"System.Data.DataSetExtensions"
/>
<Reference
Include=
"Microsoft.CSharp"
/>
<Reference
Include=
"System.Data"
/>
<Reference
Include=
"System.Deployment"
/>
<Reference
Include=
"System.Drawing"
/>
<Reference
Include=
"System.Net.Http"
/>
<Reference
Include=
"System.Windows.Forms"
/>
<Reference
Include=
"System.Xml"
/>
</ItemGroup>
<ItemGroup>
<Compile
Include=
"Form1.cs"
>
<SubType>
Form
</SubType>
</Compile>
<Compile
Include=
"Form1.Designer.cs"
>
<DependentUpon>
Form1.cs
</DependentUpon>
</Compile>
<Compile
Include=
"Program.cs"
/>
<Compile
Include=
"Properties\AssemblyInfo.cs"
/>
<EmbeddedResource
Include=
"Form1.resx"
>
<DependentUpon>
Form1.cs
</DependentUpon>
</EmbeddedResource>
<EmbeddedResource
Include=
"Properties\Resources.resx"
>
<Generator>
ResXFileCodeGenerator
</Generator>
<LastGenOutput>
Resources.Designer.cs
</LastGenOutput>
<SubType>
Designer
</SubType>
</EmbeddedResource>
<Compile
Include=
"Properties\Resources.Designer.cs"
>
<AutoGen>
True
</AutoGen>
<DependentUpon>
Resources.resx
</DependentUpon>
</Compile>
<None
Include=
"calculator_TemporaryKey.pfx"
/>
<None
Include=
"Properties\Settings.settings"
>
<Generator>
SettingsSingleFileGenerator
</Generator>
<LastGenOutput>
Settings.Designer.cs
</LastGenOutput>
</None>
<Compile
Include=
"Properties\Settings.Designer.cs"
>
<AutoGen>
True
</AutoGen>
<DependentUpon>
Settings.settings
</DependentUpon>
<DesignTimeSharedInput>
True
</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<None
Include=
"App.config"
/>
</ItemGroup>
<ItemGroup>
<BootstrapperPackage
Include=
".NETFramework,Version=v4.6.1"
>
<Visible>
False
</Visible>
<ProductName>
Microsoft .NET Framework 4.6.1 %28x86 和 x64%29
</ProductName>
<Install>
true
</Install>
</BootstrapperPackage>
<BootstrapperPackage
Include=
"Microsoft.Net.Framework.3.5.SP1"
>
<Visible>
False
</Visible>
<ProductName>
.NET Framework 3.5 SP1
</ProductName>
<Install>
false
</Install>
</BootstrapperPackage>
</ItemGroup>
<Import
Project=
"$(MSBuildToolsPath)\Microsoft.CSharp.targets"
/>
</Project>
\ No newline at end of file
C#/calculator/calculator/calculator/calculator.csproj.user
0 → 100644
浏览文件 @
61dbed86
<?xml version="1.0" encoding="utf-8"?>
<Project
ToolsVersion=
"15.0"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
>
<PropertyGroup>
<PublishUrlHistory
/>
<InstallUrlHistory
/>
<SupportUrlHistory
/>
<UpdateUrlHistory
/>
<BootstrapperUrlHistory
/>
<ErrorReportUrlHistory
/>
<FallbackCulture>
zh-CN
</FallbackCulture>
<VerifyUploadedFiles>
false
</VerifyUploadedFiles>
</PropertyGroup>
<PropertyGroup>
<EnableSecurityDebugging>
false
</EnableSecurityDebugging>
</PropertyGroup>
</Project>
\ No newline at end of file
C#/calculator/calculator/calculator/calculator_TemporaryKey.pfx
0 → 100644
浏览文件 @
61dbed86
文件已添加
C#/calculator/calculator/calculator/obj/Debug/DesignTimeResolveAssemblyReferences.cache
0 → 100644
浏览文件 @
61dbed86
文件已添加
C#/calculator/calculator/calculator/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
0 → 100644
浏览文件 @
61dbed86
文件已添加
C#/calculator/calculator/calculator/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
0 → 100644
浏览文件 @
61dbed86
C#/calculator/calculator/calculator/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
0 → 100644
浏览文件 @
61dbed86
C#/calculator/calculator/calculator/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
0 → 100644
浏览文件 @
61dbed86
C#/calculator/calculator/calculator/obj/Debug/calculator.Form1.resources
0 → 100644
浏览文件 @
61dbed86
文件已添加
C#/calculator/calculator/calculator/obj/Debug/calculator.Properties.Resources.resources
0 → 100644
浏览文件 @
61dbed86
文件已添加
C#/calculator/calculator/calculator/obj/Debug/calculator.application
0 → 100644
浏览文件 @
61dbed86
<?xml version="1.0" encoding="utf-8"?>
<asmv1:assembly
xsi:schemaLocation=
"urn:schemas-microsoft-com:asm.v1 assembly.adaptive.xsd"
manifestVersion=
"1.0"
xmlns:asmv1=
"urn:schemas-microsoft-com:asm.v1"
xmlns=
"urn:schemas-microsoft-com:asm.v2"
xmlns:asmv2=
"urn:schemas-microsoft-com:asm.v2"
xmlns:xrml=
"urn:mpeg:mpeg21:2003:01-REL-R-NS"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns:asmv3=
"urn:schemas-microsoft-com:asm.v3"
xmlns:dsig=
"http://www.w3.org/2000/09/xmldsig#"
xmlns:co.v1=
"urn:schemas-microsoft-com:clickonce.v1"
xmlns:co.v2=
"urn:schemas-microsoft-com:clickonce.v2"
>
<assemblyIdentity
name=
"calculator.application"
version=
"1.0.0.1"
publicKeyToken=
"0000000000000000"
language=
"neutral"
processorArchitecture=
"msil"
xmlns=
"urn:schemas-microsoft-com:asm.v1"
/>
<description
asmv2:publisher=
"calculator"
asmv2:product=
"calculator"
xmlns=
"urn:schemas-microsoft-com:asm.v1"
/>
<deployment
install=
"true"
mapFileExtensions=
"true"
/>
<compatibleFrameworks
xmlns=
"urn:schemas-microsoft-com:clickonce.v2"
>
<framework
targetVersion=
"4.6.1"
profile=
"Full"
supportedRuntime=
"4.0.30319"
/>
</compatibleFrameworks>
<dependency>
<dependentAssembly
dependencyType=
"install"
codebase=
"calculator.exe.manifest"
size=
"3424"
>
<assemblyIdentity
name=
"calculator.exe"
version=
"1.0.0.1"
publicKeyToken=
"0000000000000000"
language=
"neutral"
processorArchitecture=
"msil"
type=
"win32"
/>
<hash>
<dsig:Transforms>
<dsig:Transform
Algorithm=
"urn:schemas-microsoft-com:HashTransforms.Identity"
/>
</dsig:Transforms>
<dsig:DigestMethod
Algorithm=
"http://www.w3.org/2000/09/xmldsig#sha256"
/>
<dsig:DigestValue>
K4+Gcl8tl6Ifc1aYRjv65pqHnxAm/ucbZCie27SxSTk=
</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
</asmv1:assembly>
\ No newline at end of file
C#/calculator/calculator/calculator/obj/Debug/calculator.csproj.CoreCompileInputs.cache
0 → 100644
浏览文件 @
61dbed86
445590eb94355d285f9ba61e620becc626de0c45
C#/calculator/calculator/calculator/obj/Debug/calculator.csproj.FileListAbsolute.txt
0 → 100644
浏览文件 @
61dbed86
C:\Users\Hypo\OneDrive\SoftTmp\CS\calculator\calculator\bin\Debug\calculator.exe.config
C:\Users\Hypo\OneDrive\SoftTmp\CS\calculator\calculator\bin\Debug\calculator.exe
C:\Users\Hypo\OneDrive\SoftTmp\CS\calculator\calculator\bin\Debug\calculator.pdb
C:\Users\Hypo\OneDrive\SoftTmp\CS\calculator\calculator\obj\Debug\calculator.csprojResolveAssemblyReference.cache
C:\Users\Hypo\OneDrive\SoftTmp\CS\calculator\calculator\obj\Debug\calculator.Form1.resources
C:\Users\Hypo\OneDrive\SoftTmp\CS\calculator\calculator\obj\Debug\calculator.Properties.Resources.resources
C:\Users\Hypo\OneDrive\SoftTmp\CS\calculator\calculator\obj\Debug\calculator.csproj.GenerateResource.Cache
C:\Users\Hypo\OneDrive\SoftTmp\CS\calculator\calculator\obj\Debug\calculator.csproj.CoreCompileInputs.cache
C:\Users\Hypo\OneDrive\SoftTmp\CS\calculator\calculator\obj\Debug\calculator.exe
C:\Users\Hypo\OneDrive\SoftTmp\CS\calculator\calculator\obj\Debug\calculator.pdb
C:\Users\Hypo\OneDrive\SoftTmp\CS\calculator\calculator\bin\Debug\calculator.exe.manifest
C:\Users\Hypo\OneDrive\SoftTmp\CS\calculator\calculator\bin\Debug\calculator.application
C:\Users\Hypo\OneDrive\SoftTmp\CS\calculator\calculator\obj\Debug\calculator.exe.manifest
C:\Users\Hypo\OneDrive\SoftTmp\CS\calculator\calculator\obj\Debug\calculator.application
C:\Users\Hypo\Documents\GitHub\EE-Codes-of-SCNU\C#\calculator\calculator\bin\Debug\calculator.exe.config
C:\Users\Hypo\Documents\GitHub\EE-Codes-of-SCNU\C#\calculator\calculator\bin\Debug\calculator.exe.manifest
C:\Users\Hypo\Documents\GitHub\EE-Codes-of-SCNU\C#\calculator\calculator\bin\Debug\calculator.application
C:\Users\Hypo\Documents\GitHub\EE-Codes-of-SCNU\C#\calculator\calculator\bin\Debug\calculator.exe
C:\Users\Hypo\Documents\GitHub\EE-Codes-of-SCNU\C#\calculator\calculator\bin\Debug\calculator.pdb
C:\Users\Hypo\Documents\GitHub\EE-Codes-of-SCNU\C#\calculator\calculator\obj\Debug\calculator.csprojResolveAssemblyReference.cache
C:\Users\Hypo\Documents\GitHub\EE-Codes-of-SCNU\C#\calculator\calculator\obj\Debug\calculator.Form1.resources
C:\Users\Hypo\Documents\GitHub\EE-Codes-of-SCNU\C#\calculator\calculator\obj\Debug\calculator.Properties.Resources.resources
C:\Users\Hypo\Documents\GitHub\EE-Codes-of-SCNU\C#\calculator\calculator\obj\Debug\calculator.csproj.GenerateResource.Cache
C:\Users\Hypo\Documents\GitHub\EE-Codes-of-SCNU\C#\calculator\calculator\obj\Debug\calculator.csproj.CoreCompileInputs.cache
C:\Users\Hypo\Documents\GitHub\EE-Codes-of-SCNU\C#\calculator\calculator\obj\Debug\calculator.exe.manifest
C:\Users\Hypo\Documents\GitHub\EE-Codes-of-SCNU\C#\calculator\calculator\obj\Debug\calculator.application
C:\Users\Hypo\Documents\GitHub\EE-Codes-of-SCNU\C#\calculator\calculator\obj\Debug\calculator.exe
C:\Users\Hypo\Documents\GitHub\EE-Codes-of-SCNU\C#\calculator\calculator\obj\Debug\calculator.pdb
C#/calculator/calculator/calculator/obj/Debug/calculator.csproj.GenerateResource.Cache
0 → 100644
浏览文件 @
61dbed86
文件已添加
C#/calculator/calculator/calculator/obj/Debug/calculator.csprojResolveAssemblyReference.cache
0 → 100644
浏览文件 @
61dbed86
文件已添加
C#/calculator/calculator/calculator/obj/Debug/calculator.exe.manifest
0 → 100644
浏览文件 @
61dbed86
<?xml version="1.0" encoding="utf-8"?>
<asmv1:assembly
xsi:schemaLocation=
"urn:schemas-microsoft-com:asm.v1 assembly.adaptive.xsd"
manifestVersion=
"1.0"
xmlns:asmv1=
"urn:schemas-microsoft-com:asm.v1"
xmlns=
"urn:schemas-microsoft-com:asm.v2"
xmlns:asmv2=
"urn:schemas-microsoft-com:asm.v2"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns:co.v1=
"urn:schemas-microsoft-com:clickonce.v1"
xmlns:asmv3=
"urn:schemas-microsoft-com:asm.v3"
xmlns:dsig=
"http://www.w3.org/2000/09/xmldsig#"
xmlns:co.v2=
"urn:schemas-microsoft-com:clickonce.v2"
>
<asmv1:assemblyIdentity
name=
"calculator.exe"
version=
"1.0.0.1"
publicKeyToken=
"0000000000000000"
language=
"neutral"
processorArchitecture=
"msil"
type=
"win32"
/>
<application
/>
<entryPoint>
<assemblyIdentity
name=
"calculator"
version=
"1.0.0.0"
language=
"neutral"
processorArchitecture=
"msil"
/>
<commandLine
file=
"calculator.exe"
parameters=
""
/>
</entryPoint>
<trustInfo>
<security>
<applicationRequestMinimum>
<PermissionSet
Unrestricted=
"true"
ID=
"Custom"
SameSite=
"site"
/>
<defaultAssemblyRequest
permissionSetReference=
"Custom"
/>
</applicationRequestMinimum>
<requestedPrivileges
xmlns=
"urn:schemas-microsoft-com:asm.v3"
>
<!--
UAC 清单选项
若想要更改 Windows 用户帐户控制级别,请
将 requestedExecutionLevel 节点替换为下述某项。
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />
若想要使用文件和注册表虚拟化以实现向后
兼容,请删除 requestedExecutionLevel 节点。
-->
<requestedExecutionLevel
level=
"asInvoker"
uiAccess=
"false"
/>
</requestedPrivileges>
</security>
</trustInfo>
<dependency>
<dependentOS>
<osVersionInfo>
<os
majorVersion=
"5"
minorVersion=
"1"
buildNumber=
"2600"
servicePackMajor=
"0"
/>
</osVersionInfo>
</dependentOS>
</dependency>
<dependency>
<dependentAssembly
dependencyType=
"preRequisite"
allowDelayedBinding=
"true"
>
<assemblyIdentity
name=
"Microsoft.Windows.CommonLanguageRuntime"
version=
"4.0.30319.0"
/>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly
dependencyType=
"install"
allowDelayedBinding=
"true"
codebase=
"calculator.exe"
size=
"20440"
>
<assemblyIdentity
name=
"calculator"
version=
"1.0.0.0"
language=
"neutral"
processorArchitecture=
"msil"
/>
<hash>
<dsig:Transforms>
<dsig:Transform
Algorithm=
"urn:schemas-microsoft-com:HashTransforms.Identity"
/>
</dsig:Transforms>
<dsig:DigestMethod
Algorithm=
"http://www.w3.org/2000/09/xmldsig#sha256"
/>
<dsig:DigestValue>
MMeucPA1u/PJ2NxB6a02KRP3LdqGe5zkTjIuCPsMkCE=
</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<file
name=
"calculator.exe.config"
size=
"189"
>
<hash>
<dsig:Transforms>
<dsig:Transform
Algorithm=
"urn:schemas-microsoft-com:HashTransforms.Identity"
/>
</dsig:Transforms>
<dsig:DigestMethod
Algorithm=
"http://www.w3.org/2000/09/xmldsig#sha256"
/>
<dsig:DigestValue>
rl5/qDc7Jz+tB+BIbOv9iMGPlRe6YJwrjmU09dnlPcs=
</dsig:DigestValue>
</hash>
</file>
</asmv1:assembly>
\ No newline at end of file
Java/sort/README.md
0 → 100644
浏览文件 @
61dbed86
*
Java冒泡排序与快排性能比较
生成的随机数:[86, 18, 1, 15, 55, 40, 1, 21, 17, 22, 82, 80, 55, 67, 17, 81, 96, 44, 73, 62, 3, 45, 42, 62, 67, 56, 18, 34, 26, 28, 35, 52, 95, 51, 35, 15, 98, 27, 90, 43, 72, 10, 89, 8, 72, 90, 58, 36, 94, 31, 31, 39, 24, 50, 74, 83, 65, 73, 30, 38, 89, 40, 78, 77, 49, 51, 1, 81, 10, 92, 99, 64, 76, 65, 33, 53, 46, 56, 56, 14, 85, 80, 46, 36, 82, 9, 89, 91, 35, 70, 37, 12, 55, 60, 17, 6, 41, 97, 99, 33]
冒泡排序程序运行时间: 341575ns
冒泡排序结果: [1, 1, 1, 3, 6, 8, 9, 10, 10, 12, 14, 15, 15, 17, 17, 17, 18, 18, 21, 22, 24, 26, 27, 28, 30, 31, 31, 33, 33, 34, 35, 35, 35, 36, 36, 37, 38, 39, 40, 40, 41, 42, 43, 44, 45, 46, 46, 49, 50, 51, 51, 52, 53, 55, 55, 55, 56, 56, 56, 58, 60, 62, 62, 64, 65, 65, 67, 67, 70, 72, 72, 73, 73, 74, 76, 77, 78, 80, 80, 81, 81, 82, 82, 83, 85, 86, 89, 89, 89, 90, 90, 91, 92, 94, 95, 96, 97, 98, 99, 99]
数组类排序方法运行时间: 358407ns
数组类排序方法结果: [1, 1, 1, 3, 6, 8, 9, 10, 10, 12, 14, 15, 15, 17, 17, 17, 18, 18, 21, 22, 24, 26, 27, 28, 30, 31, 31, 33, 33, 34, 35, 35, 35, 36, 36, 37, 38, 39, 40, 40, 41, 42, 43, 44, 45, 46, 46, 49, 50, 51, 51, 52, 53, 55, 55, 55, 56, 56, 56, 58, 60, 62, 62, 64, 65, 65, 67, 67, 70, 72, 72, 73, 73, 74, 76, 77, 78, 80, 80, 81, 81, 82, 82, 83, 85, 86, 89, 89, 89, 90, 90, 91, 92, 94, 95, 96, 97, 98, 99, 99]
可见当n=100时,冒泡排序效率优于数组类方法。
当N=10000时,
冒泡排序程序运行时间: 263643074ns
数组类排序方法运行时间: 5718912ns
数组类排序方法明显优于冒泡排序法
\ No newline at end of file
Java/sort/sort.java
0 → 100644
浏览文件 @
61dbed86
package
sort20153100073
;
import
java.util.*
;
public
class
sort20153100073
{
//冒泡排序算法
public
static
void
bubble_sort
(
int
[]
arr
){
int
i
,
j
,
temp
,
len
=
arr
.
length
;
for
(
i
=
0
;
i
<
len
-
1
;
i
++)
for
(
j
=
0
;
j
<
len
-
1
-
i
;
j
++)
if
(
arr
[
j
]
>
arr
[
j
+
1
])
{
temp
=
arr
[
j
];
arr
[
j
]
=
arr
[
j
+
1
];
arr
[
j
+
1
]
=
temp
;
}
}
public
static
void
main
(
String
args
[]){
int
arr
[]=
new
int
[
100
];
int
arr_hub
[]=
new
int
[
100
];
int
arr_class
[]=
new
int
[
100
];
for
(
int
i
=
0
;
i
<
100
;
i
++){
arr
[
i
]=(
int
)(
Math
.
random
()*
100
);
//获取随机数
arr_hub
[
i
]=
arr
[
i
];
//深复制
arr_class
[
i
]=
arr
[
i
];
//深复制
}
System
.
out
.
println
(
"生成的随机数:"
+
Arrays
.
toString
(
arr
));
//计算冒泡排序消耗时间
long
startTime
=
System
.
nanoTime
();
//获取开始时间
bubble_sort
(
arr_hub
);
long
endTime
=
System
.
nanoTime
();
//获取结束时间
System
.
out
.
println
(
"冒泡排序程序运行时间: "
+(
endTime
-
startTime
)+
"ns"
);
System
.
out
.
println
(
"冒泡排序结果: "
+
Arrays
.
toString
(
arr_hub
));
//调用Arrays.sort方法排序
long
startTime1
=
System
.
nanoTime
();
//获取开始时间
Arrays
.
sort
(
arr_class
);
long
endTime1
=
System
.
nanoTime
();
//获取结束时间
System
.
out
.
println
(
"数组类排序方法运行时间: "
+(
endTime1
-
startTime1
)+
"ns"
);
System
.
out
.
println
(
"数组类排序方法结果: "
+
Arrays
.
toString
(
arr_class
));
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录