随笔 - 26  文章 - 67  评论 - 4  阅读 - 4217 
12 2022 档案
max与min
摘要:1 static void Main(string[] args) 2 { 3 int[] a = new int[10]; 4 int score = 0; 5 for (int i = 0; i < 10; i++) 6 { 7 Console.Write("第{0}位评委评分为:", i + 阅读全文
posted @ 2022-12-12 02:00 ihoi 阅读(167) 评论(0) 推荐(0) 编辑
面向对象
摘要:Loli.cs 1 public class Loli 2 { 3 public string name; 4 public bool sex; 5 public int age; 6 public int height; 7 public int weight; 8 public void cal 阅读全文
posted @ 2022-12-10 06:44 ihoi 阅读(35) 评论(0) 推荐(0) 编辑
i++与++i
摘要:++[搜狗百科] //先用后加与先加后用 1 int a = 7; 2 int b = ++a; //int b = a += 1; 3 int c = a++; //int c = a; a++; 4 Console.WriteLine("{0} {1} {2}",a,b,c); //9 8 8 阅读全文
posted @ 2022-12-05 15:29 ihoi 阅读(31) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示