自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 问答 (1)
  • 收藏
  • 关注

原创 C#辗转相除法求最大公约数与最小公倍数

class Program { static void Main(string[] args) { int num1, num2, mm; Console.WriteLine(“请输入第一个数:”); num1 = Convert.ToInt32(Console.ReadLin

2017-02-28 10:25:15 7901

原创 输出100以内质数

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks;namespace ConsoleApplication8 { class Program { static void Ma

2017-02-27 16:33:09 1015

原创 C#递归调用

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks;namespace ConsoleApplication7 { class Program { static void Main(str

2017-02-27 11:56:31 864

原创 C# 的方法的嵌套

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks;namespace ConsoleApplication6 { class Program { static double fa

2017-02-27 11:36:44 3467

原创 C# 合并两个窗体

Form1 f = new Form1(); f.Show(); 1是一个已有的想要引用的窗体,在你的代码中通过这种方式引用。

2017-02-26 17:22:39 2419

原创 C#中的foreach语句

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks;namespace ConsoleApplication5 { class Program { static void Ma

2017-02-26 15:55:20 674

原创 C# continue 语句的使用

continue一般配合if使用 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks;namespace ConsoleApplication4 { class Program {

2017-02-26 11:53:41 1169

原创 C# switch 语句的简单应用

public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { int a =Convert.ToInt16(textBox1.Text); int b = 0

2017-02-26 11:38:22 749

原创 C# 三角形求斜边

public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { double a = Convert.ToDouble(textBox1.Text); doub

2017-02-26 11:14:04 3753 1

原创 C#简单的函数调用

class Program { static void Main(string[] args) { L(); Console.ReadKey(); } public static void L() { int i = 20;

2017-02-26 10:56:18 996

原创 C#窗体程序的退出

Application.Exit();

2017-02-26 10:51:40 510

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除