2017年11月7日

c#基础试题

摘要: 1.String类的IndexOf()方法返回的类型是?(选择2项) 答案 BC (int32=int) A.Int16 B.Int32 C.int D.long 2.分析下列程序, 请选择正确的输出结果( A )。 static void Main(string[] args) { int myl 阅读全文

posted @ 2017-11-07 16:30 小败哥哥。 阅读(646) 评论(0) 推荐(0) 编辑

c#对战游戏

摘要: namespace 对战游戏{ class Program { public struct ZhanShi { public string MingZi; public int GongJi; public int XueLiang; } static void Main(string[] args 阅读全文

posted @ 2017-11-07 16:02 小败哥哥。 阅读(494) 评论(0) 推荐(0) 编辑

c# 推箱子游戏

摘要: 1.首先 Console.ReadKey(); 给他个停住属性 2.画地图:string[,] map = new string[10, 10] { {" "," ","■","■","■","■","■","■","■","■"}, {" "," ","■"," "," "," &quo 阅读全文

posted @ 2017-11-07 15:49 小败哥哥。 阅读(514) 评论(0) 推荐(0) 编辑

2017年11月3日

c#基础

摘要: 在 C# 中,变量分为以下几种类型: 值类型(Value types) 引用类型(Reference types) 指针类型(Pointer types) C#中,几个常用的输出方式: Console.WriteLine("Hello China!"); Console.Write("Hello W 阅读全文

posted @ 2017-11-03 21:26 小败哥哥。 阅读(98) 评论(0) 推荐(0) 编辑

2017年10月27日

常用查询语句例题。

摘要: 1.查询所有学生的Sname、Cname和Degree列。select Sname,Cname,Degree from student1 t1 join Score t2 on t1.Sno=t2.Sno join course t3 on t2.Cno=t3.Cno (最基本的连接查询 join 阅读全文

posted @ 2017-10-27 14:52 小败哥哥。 阅读(115) 评论(0) 推荐(0) 编辑

2017年10月24日

查询语句。

摘要: select * from car where time > '2016-09-01'--模糊查询select * from car where name like '奥迪%'--排序查询select * from car order by oil desc --递减select * from ca 阅读全文

posted @ 2017-10-24 16:29 小败哥哥。 阅读(76) 评论(0) 推荐(0) 编辑

2017年10月23日

数据库基础(创建数据库、表基础)

摘要: 1、SQL语句的注释2、创建数据库create database 数据库名称(不允许以数字开头,不允许以符号开头,不要起汉语名字)3、如何选中这个数据库use 数据库名4、创建表 - 创建字段 - 主键约束、唯一约束create table 表名( 列名 数据类型 primary key, --主键 阅读全文

posted @ 2017-10-23 13:56 小败哥哥。 阅读(138) 评论(0) 推荐(0) 编辑

sql语句设置主外键约束

摘要: alter table 外键表名 add constraint 约束名称 foreign key(外键字段) references 主键表名(约束列名) 如表A中的Ids是主键,要约束表B中的Aid列,那么语句应该是: alter table B add constraint A_B_Ids for 阅读全文

posted @ 2017-10-23 13:51 小败哥哥。 阅读(227) 评论(0) 推荐(0) 编辑

2017年10月9日

考试不足总结

摘要: 今天进行了第一阶段的阶段性考试,考试的内容总的来说还是比较基础的,面对这些基础知识,还是答的不是很满意,总结一下自己的不足。 对于一些属性忘得还是比较快,对于一些选择题如果没有一点印象,估计都答不上来。填空方面,还是比较基础的,通过填空题,我感觉自己的基础还是掌握得不够牢固。 简答方面,对于代码的手 阅读全文

posted @ 2017-10-09 23:32 小败哥哥。 阅读(468) 评论(0) 推荐(0) 编辑

2017年9月29日

三级联动日历例题

摘要: <body> <select id="year"></select>年 <select id="month"></select>月 <select id="day"></select>日 //设置年月日下拉框 </body></html><script> var year = document.ge 阅读全文

posted @ 2017-09-29 23:18 小败哥哥。 阅读(230) 评论(0) 推荐(0) 编辑

导航