![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c#
裸禄棍交比火牛
这个作者很懒,什么都没留下…
展开
-
c#之文件操作,timer控件自动备份
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.IO;namespace WindowsFormsApplication21{ public parti原创 2020-06-03 15:53:45 · 861 阅读 · 0 评论 -
c#之多态、接口
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication12{ //Employee类 abstract public class Employee{ public string Name{get;set;} public string Salary { get; set; }.原创 2020-05-25 20:34:55 · 153 阅读 · 0 评论 -
c#之矩阵、上三角、下三角、对角线之和
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication13{ class Program { static void Main(string[] args) { int[,] a1 = new int[4, 4] { { 1, 2, 3, 4 }, { 5, .原创 2020-05-25 20:26:50 · 1660 阅读 · 1 评论 -
c#异常类的闰年判断
设计一个Windows应用程序判断输入年份是否为闰年,并能够检测输入的 非法数值。例如:输入字母、特殊符号或输入的整数超出合理范围时都要 进行异常处理。 private void button1_Click(object sender, EventArgs e) { checked { ...原创 2020-04-29 19:52:12 · 601 阅读 · 0 评论 -
C#之多态与继承汽车类
namespace ConsoleApplication10{ //汽车类 class Vehicle { public virtual void vehicleRun(){ Console.WriteLine("汽车在行驶"); }} //卡车类 class Truck:Vehicle { ...原创 2020-04-22 16:51:10 · 2396 阅读 · 0 评论 -
c#使用属性来计算圆柱体积
class Program { //计算圆柱体积,定义成员 int r; int h; double t; //构建属性 public int R { get { return r; } ...原创 2020-04-11 23:38:25 · 2732 阅读 · 2 评论 -
c# 求商与余数,余数为零时弹窗警告。
namespace WindowsFormsApplication16{ class Compute { public static void cs(int o,int p,out int a,out int b) { a = o / p; b = o % p; ...原创 2020-04-09 17:08:06 · 2121 阅读 · 1 评论 -
c#方法重载求和
class Program { //两整数求和 public void sum(int x,int y){ Console.WriteLine("请输入两个整数;"); Console.WriteLine(x); Console.WriteLine(y); ...原创 2020-04-09 10:04:02 · 984 阅读 · 0 评论 -
c#窗体面板求和与平均值
namespace WindowsFormsApplication14{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } //sum静态方法 static int s...原创 2020-04-09 09:23:39 · 1476 阅读 · 0 评论