上一页 1 ··· 5 6 7 8 9 10 11 下一页
摘要: 1 /* 通过代码操作:创建一个数据库,里面有一个学生信息表, 2 内容包括:学号,姓名,性别,体重,年龄,语数外三门课分数,班级 插入20条数据 3 执行以下查询操作: 4 1.查姓王的同学的信息 5 2.分别查每门课程最高分,最低分 6 3.查男... 阅读全文
posted @ 2014-10-31 09:01 Tirisfal 阅读(279) 评论(0) 推荐(0) 编辑
摘要: 1 create database biao2--创建新的数据库 2 go 3 use biao2 4 go 5 create table shuiguo--创建表shuiguo ,create table创建表 6 ( 7 序号 int, 8 名字 varchar(10),--()小括号内... 阅读全文
posted @ 2014-10-30 16:32 Tirisfal 阅读(287) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace XTU0{ class Program { ... 阅读全文
posted @ 2014-10-27 08:26 Tirisfal 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 1 namespace jiegouti_1 2 { 3 class hanshu 4 { 5 /// 6 /// 输入参数h,正整数,可以求1-h的和 7 /// 8 /// 9 //在函数上面... 阅读全文
posted @ 2014-10-26 08:31 Tirisfal 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 结构体: 1 namespace jiegouti 2 { 3 class Program 4 { 5 //结构体 是一个变量组 6 public struct jiegouti 7 {//定义一组变量,可以定义任何类型的数据变量。... 阅读全文
posted @ 2014-10-24 09:46 Tirisfal 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 特殊集合:Stack. 先进后出,堆叠没有索引。 1 Stack ss = new Stack(); 2 ss.Push("a");//将堆叠推入Stack中。 3 ss.Push("b");//用Push推入数据。用Pop,弹... 阅读全文
posted @ 2014-10-23 09:44 Tirisfal 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 集合是一个类,在System.Collections库中,需要先引用。集合的理论空间是无限的。一般不需额外定义。using System.Collections;集合也是有索引的 从0开始。1. Insert 在集合中 插入一个数据2. Remove 移除第一个符合的数据。3.Count 集合中元素... 阅读全文
posted @ 2014-10-21 16:34 Tirisfal 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 1 //1.....输入十个人的分数去掉两个最高分两个最低分,求平均分 2 Console.Write("请输入班级的总人数:"); 3 int n = int.Parse(Console.ReadLine()); 4 ... 阅读全文
posted @ 2014-10-21 16:23 Tirisfal 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 二维数组::int[,] ss = new int[3, 5] { { 0, 1, 2, 3, 4 }, { 5, 6, 7, 8, 9 }, { 10, 11, 12, 13, 14 } };二维数组,int[x,y]表示是x个数组,每个数组包含y个元素取值,ss[m,n]表示第m个数组的第n个元... 阅读全文
posted @ 2014-10-21 16:16 Tirisfal 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 1 //数组的定义,new为初始化,长度为"[]"里的数字,赋值为"{}"内的内容2 int[] sz = new int[6] { 1, 2, 3, 4, 5, 6 };//名字为sz的数组可以放6个int类型的数{大括号内写入想要写的数用,隔开}3... 阅读全文
posted @ 2014-10-20 15:19 Tirisfal 阅读(177) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 下一页