上一页 1 ··· 3 4 5 6 7
摘要: class Program { static void Main(string[] args) { while (true) { /*★ ★★ ... 阅读全文
posted @ 2015-04-19 19:14 王文姿 阅读(579) 评论(0) 推荐(0) 编辑
摘要: staticvoidMain(string[]args){while(true){inta;Randomr=newRandom();a=r.Next(0,24);Console.WriteLine(a);if(a>=0&&a=6&&a=12&&a=18&&a<=24){Console.WriteLi... 阅读全文
posted @ 2015-04-19 13:21 王文姿 阅读(1503) 评论(0) 推荐(0) 编辑
摘要: //语法 //选择语句 if,else;switch case; //循环语句 do,for;foreach;while ; //跳转语句 break,continue,return ; //异常语句 try catch ,finally; //例题 // 1,输入一个正整数,判断是不是一个正整数... 阅读全文
posted @ 2015-04-19 10:22 王文姿 阅读(570) 评论(0) 推荐(0) 编辑
摘要: create database s9999--注释数据库create table student--创建一个表(code int not null,name varchar(50) not null,sex varchar(50) not null,age int not null)goinsert... 阅读全文
posted @ 2015-04-19 09:55 王文姿 阅读(121) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Text;namespace ConsoleApplication1{class 行李重量{static void Main(string[] args){{Double a;whi... 阅读全文
posted @ 2015-04-19 09:45 王文姿 阅读(231) 评论(0) 推荐(0) 编辑
摘要: //输出语句 Console.ReadLine(); //输入语句 Console.WriteLine(); /// 给函数加注解; /**/ //一段区域 // 数据类型 // 1,整型 int; // 2,浮点型 double; // 3,字符串型 string; // 4,布尔型 bool ... 阅读全文
posted @ 2015-04-19 09:44 王文姿 阅读(529) 评论(1) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7