摘要: using System; namespace 实例变量 { class Program { static void Main() { Console.Write("请随便输入一个数:"); int number = int.Parse(Console.ReadLine()); string res 阅读全文
posted @ 2020-09-17 17:04 siha123 阅读(73) 评论(0) 推荐(0)
摘要: using System; namespace 实例变量 { class Program { string stuName;//创建变量 static void Add(int x, int y, out int sum)//定义方法 { sum=x+y; //x,y相加 } static void 阅读全文
posted @ 2020-09-17 16:25 siha123 阅读(50) 评论(0) 推荐(0)
摘要: using System; namespace 实例变量 { class Program { string stuName;//创建变量 static void Main(string[] args) { Program pg = new Program();//实例化类 pg.stuName = 阅读全文
posted @ 2020-09-17 16:07 siha123 阅读(53) 评论(0) 推荐(0)
摘要: C#平台:控制台应用程序 程序及注释: using System; namespace ConsoleApp1{ class Program { static string StuName = "徐菲菲"; static void Main(string[] args) { int Age = St 阅读全文
posted @ 2020-09-17 15:26 siha123 阅读(249) 评论(0) 推荐(0)