摘要: using System; using System.Security.Cryptography; using System.Text; using System.IO; public class Test { public static void Main() { //密码 string pass 阅读全文
posted @ 2023-02-06 08:38 SairenjiHaruna 阅读(318) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <string> #include <windows.h> using namespace std; //获取设备硬件信息 BOOL GetBaseBoardByCmd(char* lpszBaseBoard, int len/*=128*/ 阅读全文
posted @ 2023-01-28 10:14 SairenjiHaruna 阅读(167) 评论(0) 推荐(0) 编辑
摘要: System.String类常用方法收集 namespace ConsoleApp1 { internal class Program { static void Main(string[] args) { //创建字符串 string strDemo= "Sairenji Haruna"; //获 阅读全文
posted @ 2022-12-26 09:23 SairenjiHaruna 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 货恶其弃于地也,不必藏于己;力恶其不出于身也,不必为己 阅读全文
posted @ 2022-12-23 16:50 SairenjiHaruna 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 入则无法家拂士,出则无敌国外患者,国恒亡 阅读全文
posted @ 2022-12-23 16:45 SairenjiHaruna 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 继承 继承,能够定义可重用、扩展或修改父类行为的子类。 成员被继承的类称为基类。 继承基类成员的类称为派生类。 //基类 namespace ConsoleApp1 { class BaseClass { public int data1; public string data2; public v 阅读全文
posted @ 2022-12-23 16:29 SairenjiHaruna 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 添加类(CTRL+SHIFT+A) using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Consol 阅读全文
posted @ 2022-12-08 14:19 SairenjiHaruna 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-12-05 13:02 SairenjiHaruna 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 秦人不暇自哀,而后人哀之;后人哀之而不鉴之,亦使后人而复哀后人也 阅读全文
posted @ 2022-12-03 08:29 SairenjiHaruna 阅读(57) 评论(0) 推荐(0) 编辑
摘要: 匿名数据类型 namespace DEMO { class Program { static void Main(string[] args) { int intValue0 = 1; Console.WriteLine(intValue0.GetType()); var Value1 = 2; C 阅读全文
posted @ 2022-11-03 11:24 SairenjiHaruna 阅读(10) 评论(0) 推荐(0) 编辑
摘要: using Microsoft.Win32; using System; using System.Runtime.InteropServices; namespace SairenjiHaruna { class SysEnvironment { static void Main(string[] 阅读全文
posted @ 2022-10-25 12:16 SairenjiHaruna 阅读(65) 评论(0) 推荐(0) 编辑
摘要: using System; namespace ConsoleApp3 { class TestClass { static void Main(string[] args) { int[] int_arrArray = new int[10] { 0, 1, 2, 3, 4, 5, 6, 7, 8 阅读全文
posted @ 2022-10-24 12:00 SairenjiHaruna 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 主程序 namespace ConsoleApp1 { internal class Program { static void Main(string[] args) { Console.WriteLine("Hello, World!"); Console.ReadKey(); } } } 判断 阅读全文
posted @ 2022-10-24 10:12 SairenjiHaruna 阅读(268) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections; using System.Collections.Generic; using System.IO; namespace 遍历文件夹和子文件夹 { class Program { static void Main(str 阅读全文
posted @ 2022-10-21 10:49 SairenjiHaruna 阅读(161) 评论(0) 推荐(0) 编辑
摘要: using System; using System.IO; namespace SairenjiHaruna { class Program { static void Main(string[] args) { string strCurPath = System.Environment.Cur 阅读全文
posted @ 2022-10-21 10:01 SairenjiHaruna 阅读(160) 评论(0) 推荐(0) 编辑