posted @ 2021-11-24 22:01
随笔分类 - C#作业
摘要:多个单词连接的命名,不使用空格或者连接符下划线等连接 将第一个单词的首字母大写,后续单词也将首字母大写形成的唯一识别符 不同于驼峰命名法 C#方法名的命名是以 Pascal 命名法为规范的,命名时需注意命名规范 如: 程序代码public void DisplayInfo(); string Use
阅读全文
摘要:1 using System; 2 using System.Collections.Generic; 3 4 namespace Test_1_5 5 { 6 class Program 7 { 8 static void Main(string[] args) 9 { 10 int max, m
阅读全文
posted @ 2021-11-24 17:57
摘要:using System; using System.Collections.Generic; namespace Test_1_4 { class Program { static void Main(string[] args) { List<string> str = new List<str
阅读全文
posted @ 2021-10-17 16:58
摘要:using System; namespace Test_1_3 { class Program { static void Main(string[] args) { int sum = 2; bool flag = false; while (sum < int.MaxValue && flag
阅读全文
posted @ 2021-10-17 16:57
摘要:using System; using System.Collections.Generic; using System.Text; namespace Test_1 { class test_1_2 { static void Main(String[] args) { int i; while
阅读全文
posted @ 2021-10-17 10:57
摘要:using System; namespace Test_1 { class test_1_1 { static void Main(string[] args) { int i; double t_1, t_2, t_3;//三角形的三条边 double r_len, r_wid;//长方形的长宽
阅读全文
posted @ 2021-10-17 10:37