随笔分类 - c#
摘要:public class Vector3 { public float x,y,z,length; public Vector3() { Console.WriteLine("Vector被调用了"); } public Vector3(float x,float y,...
阅读全文
摘要:using System; namespace C方法和类 { class Program { public static void Main(string[] args) { //1,如果要使用一个类,就要引入它所在的命名空间,因为customer位于当前的命名空间下,所以不需要引入,可以之间使用 ...
阅读全文
摘要:using System; namespace C重载 {//定义一个委托跟函数差不多,区别在于定义委托需要加上delegate关键字委托定义不需要函数体 delegate double MyDelegate( double par1,double par2); class Program { static double MUL( double par1...
阅读全文
摘要:/* * 由SharpDevelop创建。 * 用户: Administrator * 日期: 2018/10/20 * 时间: 21:07 * * 要改变这种模板请点击 工具|选项|代码编写|编辑标准头文件 */ using System; namespace C结构函数 { struct CustomerName { public s...
阅读全文
摘要:/* * 由SharpDevelop创建。 * 用户: Administrator * 日期: 2018/10/20 * 时间: 16:33 * * 要改变这种模板请点击 工具|选项|代码编写|编辑标准头文件 */ using System; namespace C函数 { class Program { static void Write(...
阅读全文
摘要:/* * 由SharpDevelop创建。 * 用户: Administrator * 日期: 2018/10/20 * 时间: 15:53 * * 要改变这种模板请点击 工具|选项|代码编写|编辑标准头文件 */ using System; namespace C密码 { class Program { public static void M...
阅读全文
摘要:int num=Convert.ToInt32(Console.ReadLine()); int count100=num/100; int remain=num%100; int count50=num/50; remain=num%50; int count10=num/10; ...
阅读全文
摘要:/* * Created by SharpDevelop. * User: Administrator * Date: 2018/10/17 * Time: 21:59 * * To change this template use Tools | Options | Coding | Edit Standard Headers. */ using System; namesp...
阅读全文
摘要:using System; namespace lianxi8 { class Program { public static void Main(string[] args) { for (int i=1;i<10;i++){ for(int j=1;j<10;j++){ Console.Write(i+"*"+j+"="+(i*j)+" "); ...
阅读全文
摘要:/* * 由SharpDevelop创建。 * 用户: Administrator * 日期: 2018/10/12 * 时间: 20:53 * * 要改变这种模板请点击 工具|选项|代码编写|编辑标准头文件 */ using System; namespace lianxi10{ enum GameState{ Pause, Failed, Success, Sta...
阅读全文
摘要:/* * 由SharpDevelop创建。 * 用户: Administrator * 日期: 2018/10/14 * 时间: 21:07 * * 要改变这种模板请点击 工具|选项|代码编写|编辑标准头文件 */ using System; namespace clianxi3 { class Program { public static void Main(str...
阅读全文
摘要:using System; namespace c练习五 { class Program { public static void Main(string[] args) { string str=Console.ReadLine();//请用户输入一个数 string[] strArray =st...
阅读全文
摘要:using System; using System.Collections; using System.Linq; using System.Text; using System.Threading.Tasks; namespace anli { class Program { public static void Main(string[] args) { ...
阅读全文

浙公网安备 33010602011771号