12 2014 档案
摘要:一、的用法 内嵌网页,在一个网页中添加一个网页可以在括号里面添加 width height scrolling="no"(是否有滚动条) framborder="0"(是否有边框) 可以代替,完全被另一个网页代替,类似于一个表格 一个frame就是一个单元格可以在括号里面添加各种用法:rows="1...
阅读全文
摘要:html:超文本标记语言css:控制html的样式javascript:结合在网页的基础上,把网页作为界面,对网页的内容进行设置。(脚本语言)html语言中基础代码含义: 此处显示标题 ...
阅读全文
摘要://特殊集合,栈 stack Stack ss = new Stack(); ss.Push(3); //向栈中插入3 Console.WriteLine(ss.Peek()); //返回最后一个进入栈的元素 Console.WriteLine(ss.Pop()); //返回并移除最后一个进入栈的元...
阅读全文
摘要://首先定义一个新的array类class ArrayListjihe { static void Main(string[] args) { ArrayList arr = new ArrayList(); arr.Add(3); arr.Add("hello"); //通过添加元素的先后顺序生成...
阅读全文
摘要:多维数组:int [,] shuzuming=new int[5,3] //有5个长度为3的一维数组二维数组读取时,逗号前的为y轴,逗号后面的为x轴(一维数组)int[,] second = new int[2, 3] { { 3, 2, 5 }, { 6, 7, 8 } };second[0,1]...
阅读全文
摘要:数组:定义一组同类型的指定个数的变量,索引从0开始int [] shuzuming=new int[10]; //中括号中为需要定义的长度(个数)shuzuming[0]=1;shuzuming[1]=2;//彩票双色球问题(红球33选6,蓝球16选1)int[] hongqiu=new int[6...
阅读全文
摘要:跳转语句:break例:for(int i=0;;i++) //无判断条件,即永远满足条件,无限循环{console.writeline("hello world!");if(i==9){break; //i=9时跳出循环}continue:if (i==2){continue; //结束conti...
阅读全文
摘要:for(初始条件;比较;状态改变 ){循环体}//打印100遍hellowordfor(int i=0;i1;m--){for(intn=1;nm;l--){Console.Write("☆");}Console.Write("\n");}////左上for(intm=1;mm;n--){Conso...
阅读全文
摘要://判断是否是闰年 int b = int.Parse(Console.ReadLine()); if (b % 4 == 0 && b % 100 != 0) { Console.WriteLine("是闰年"); } else if (b % 400 == 0) { Console.WriteL...
阅读全文
摘要:static void Main(string[] arges){//数学运算符 加减乘除模int a=1;int b=2;int c=a+b;c=1+14%13;Console.WriteLine(c);//递增运算符c=a++ //"a++"等于“a=a+1”,先执行C的操作,再执行 a 的操作...
阅读全文
摘要:---恢复内容开始---//注释一行using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;//命名空间namespace first...
阅读全文
摘要:视图:把一个查询结果集当作表例:select * from (select * from score,grade where score.degree between low and upp) as jieguotable where rank='A' as 后面的作为一个虚拟的表create vi...
阅读全文
摘要:---存储过程alter proc ChaXunasbeginselect *from Scoreendgo--执行exec chaxun--删除drop proc chaxun--输入参数的存储过程alter proc jiayibai@shuru int,@canshu intasbeginpr...
阅读全文

浙公网安备 33010602011771号