Skip to content

Commit

Permalink
Merge pull request #7 from ffengc/rookie-dev
Browse files Browse the repository at this point in the history
feat sortMethods part, done, performance test done
  • Loading branch information
ffengc authored Aug 12, 2024
2 parents 92e1d4e + 912359a commit 7d98499
Show file tree
Hide file tree
Showing 38 changed files with 747 additions and 282 deletions.
Binary file modified .vs/ProjectEvaluation/rookie-csharp.metadata.v8.bin
Binary file not shown.
Binary file modified .vs/ProjectEvaluation/rookie-csharp.projects.v8.bin
Binary file not shown.
Binary file modified .vs/ProjectEvaluation/rookie-csharp.strings.v8.bin
Binary file not shown.
Binary file modified .vs/rookie-csharp/DesignTimeBuild/.dtbcache.v2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified .vs/rookie-csharp/v17/.futdcache.v2
Binary file not shown.
Binary file modified .vs/rookie-csharp/v17/.suo
Binary file not shown.
23 changes: 12 additions & 11 deletions .vs/rookie-csharp/v17/DocumentLayout.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"WorkspaceRootPath": "C:\\Users\\demac\\Desktop\\rookie-csharp\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{699C2EF6-C0D4-400D-88E4-D56BB71B68E3}|rookie-csharp.csproj|c:\\users\\demac\\desktop\\rookie-csharp\\src\\lesson5.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{699C2EF6-C0D4-400D-88E4-D56BB71B68E3}|rookie-csharp.csproj|solutionrelative:src\\lesson5.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\demac\\Desktop\\rookie-csharp\\src\\SortMethods.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:src\\SortMethods.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{699C2EF6-C0D4-400D-88E4-D56BB71B68E3}|rookie-csharp.csproj|c:\\users\\demac\\desktop\\rookie-csharp\\main.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
Expand All @@ -28,22 +28,23 @@
"RelativeDocumentMoniker": "Main.cs",
"ToolTip": "C:\\Users\\demac\\Desktop\\rookie-csharp\\Main.cs",
"RelativeToolTip": "Main.cs",
"ViewState": "AQIAAAkAAAAAAAAAAAAAABcAAAATAAAA",
"ViewState": "AQIAAAkAAAAAAAAAAAAAABYAAAAzAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-08-02T15:31:06.637Z",
"IsPinned": true
"IsPinned": true,
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 0,
"Title": "Lesson5.cs",
"DocumentMoniker": "C:\\Users\\demac\\Desktop\\rookie-csharp\\src\\Lesson5.cs",
"RelativeDocumentMoniker": "src\\Lesson5.cs",
"ToolTip": "C:\\Users\\demac\\Desktop\\rookie-csharp\\src\\Lesson5.cs",
"RelativeToolTip": "src\\Lesson5.cs",
"ViewState": "AQIAAAAAAAAAAAAAAAAAALoAAAATAAAA",
"Title": "SortMethods.cs",
"DocumentMoniker": "C:\\Users\\demac\\Desktop\\rookie-csharp\\src\\SortMethods.cs",
"RelativeDocumentMoniker": "src\\SortMethods.cs",
"ToolTip": "C:\\Users\\demac\\Desktop\\rookie-csharp\\src\\SortMethods.cs",
"RelativeToolTip": "src\\SortMethods.cs",
"ViewState": "AQIAADMBAAAAAAAAAAAAAEQBAAAZAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-08-08T14:45:01.523Z",
"WhenOpened": "2024-08-12T08:31:32.138Z",
"EditorCaption": ""
}
]
Expand Down
65 changes: 9 additions & 56 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,62 +18,6 @@

- **[Visual Studio](https://visualstudio.microsoft.com/)**

***

下面代码在文件`Lesson1.cs`中。

## 目录

- [rookie-csharp](#rookie-csharp)
- [环境](#环境)
- [目录](#目录)
- [简单入门](#简单入门)
- [顶级语句](#顶级语句)
- [类型](#类型)
- [值类型](#值类型)
- [浅拷贝还是深拷贝](#浅拷贝还是深拷贝)
- [引用类型](#引用类型)
- [指针类型](#指针类型)
- [类型转换](#类型转换)
- [隐式和显式](#隐式和显式)
- [类型转换方法](#类型转换方法)
- [类型转换重载](#类型转换重载)
- [从 `stdin` 读数据](#从-stdin-读数据)
- [一些其他规则](#一些其他规则)
- [变量的生命周期](#变量的生命周期)
- [常量](#常量)
- [运算符](#运算符)
- [循环](#循环)
- [访问限定符和继承](#访问限定符和继承)
- [方法定义(函数定义)](#方法定义函数定义)
- [一个递归调用的例子](#一个递归调用的例子)
- [输入参数、输入输出参数、输出参数](#输入参数输入输出参数输出参数)
- [可空类型 `Nullable`](#可空类型-nullable)
- [数组](#数组)
- [常规数组](#常规数组)
- [数组作为函数参数](#数组作为函数参数)
- [参数数组(可变参数)](#参数数组可变参数)
- [`Array`基类](#array基类)
- [`String`类型](#string类型)
- [构造](#构造)
- [属性](#属性)
- [常用方法介绍](#常用方法介绍)
- [`Struct` 封装](#struct-封装)
- [简单使用](#简单使用)
- [`struct` vs `class`](#struct-vs-class)
- [枚举类型](#枚举类型)
- [类](#类)
- [基本介绍](#基本介绍)
- [构造和析构](#构造和析构)
- [静态成员](#静态成员)
- [继承和多态](#继承和多态)
- [运算符重载](#运算符重载)
- [接口 `Interface`](#接口-interface)
- [命名空间](#命名空间)
- [预处理](#预处理)
- [异常处理](#异常处理)
- [文件处理](#文件处理)

## 简单入门

首先我用的目录结构:
Expand Down Expand Up @@ -1506,3 +1450,12 @@ public void Test4()

具体可以见代码 `src/Lesson5.cs`。

## `C#` 版本的八大排序

具体见代码。

于此同时还提供了八大排序的性能测试结果,如图所示。

![](./assets/17.png)

这个结果也是符合预期的。
Binary file added assets/._17.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/17.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions bin/Debug/net8.0/rookie-csharp.deps.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v8.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v8.0": {
"rookie-csharp/1.0.0": {
"runtime": {
"rookie-csharp.dll": {}
}
}
}
},
"libraries": {
"rookie-csharp/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
}
}
}
Binary file added bin/Debug/net8.0/rookie-csharp.dll
Binary file not shown.
Binary file added bin/Debug/net8.0/rookie-csharp.exe
Binary file not shown.
Binary file added bin/Debug/net8.0/rookie-csharp.pdb
Binary file not shown.
12 changes: 12 additions & 0 deletions bin/Debug/net8.0/rookie-csharp.runtimeconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"runtimeOptions": {
"tfm": "net8.0",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "8.0.0"
},
"configProperties": {
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
}
}
}
Loading

0 comments on commit 7d98499

Please sign in to comment.