摘要:
1. 设计一个Windows登陆窗体应用程序,能够实现根据现有表中数据模拟登陆,并设置相关属性,具体界面如下。 可能使用到的类: (1)SqlConnection (2)SqlCommand (3)SqlDataReader (4)MessageBox 1 using System; 2 using 阅读全文
摘要:
1. 设计一个窗体应用程序,模拟写字板应用程序的基本功能。具体功能要求如下: (1)“文件”菜单中有“新建”、“打开”、“保存”、“退出”子菜单。 (2)“编辑”菜单中有“剪切”、“复制”、“粘贴”、“撤销”、“重复”、“全选”子菜单。 (3)工具菜单中有“颜色”、“字体”、“状态栏”功能。 (4) 阅读全文
摘要:
1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using System.Linq; 7 阅读全文
摘要:
1. 定义Car类,练习Lambda表达式拍序 (1)Car类中包含两个字段:name和price; (2)Car类中包含相应的属性、构造函数及ToString方法; (3)在Main方法中定义Car数组,并实例化该数组; (4)在Main方法中,按姓名排序输出Car数组所有元素。 (5)在Main 阅读全文
摘要:
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace Myproject 阅读全文
摘要:
1、虚方法练习 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace MyProject 7 { 8 class Program 9 { 阅读全文
摘要:
题意: 给定两个操作: MULTIPLY L R x 区间里都乘以一个数x MAX L R : 计算区间内一个2,3,5,7个数最大值。 1 #include<bits/stdc++.h> 2 using namespace std; 3 const int N = 1e5 + 10 ; 4 int 阅读全文
摘要:
实验1: 求解 1/1 + 1 / 2 + 1 / 3 + 1 / 4 …… + 1 / i = ? 确保精度在 1e-6内。 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using Syste 阅读全文
摘要:
实验1: 定义一个 TimePeiod 类 包含: hour , minute , second 实现时间的在 时分秒上的加法。 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using Syst 阅读全文
摘要:
1、回顾类中基本结构。 成员分为: a、(数据成员) , b、(方法成员) 数据成员: 字段 方法成员:方法,构造函数,属性,索引器,运算符。 属性的作用: 对字段进行访问提供get,set方法。 类中的字段通常用private修饰,通常用方法间接访问。 2、学会了派生,继承 1 using Sys 阅读全文