码迷,mamicode.com
首页 >  
搜索关键字:readline    ( 2056个结果
闰年、平年
//自己做的 //判断闰年还是平年 Console.WriteLine("请输入年份"); int a = Convert.ToInt32(Console.ReadLine()); if (a > 0 && a ...
分类:其他好文   时间:2015-07-14 22:29:21    阅读次数:245
python 版本升级(CentOS) 从2.6.6升级到2.7.6
1 #升级前必须先安装其它依赖 2 yum install readline-devel sqlite-devel bzip2-devel openssl-devel gdbm-devel libdbi-devel ncurses-libs zlib-devel -y 3 #下载python安装包....
分类:编程语言   时间:2015-07-14 22:28:45    阅读次数:257
定闹钟
15-07-06 定闹钟 Console.WriteLine("请输入闹钟的日期时间"); DateTime s = Convert.ToDateTime(Console.ReadLine()); while (true) { Console.C...
分类:其他好文   时间:2015-07-14 13:31:27    阅读次数:112
看名字测缘分
小游戏-看名字测缘分while (true) { Console.WriteLine("请输入你的姓名:"); string name1 = Console.ReadLine(); int seed1 = 0; if (name1.L...
分类:其他好文   时间:2015-07-14 13:26:48    阅读次数:95
for ()语句-打印三角形
15-07-03 for ()语句-打印三角形1. Console.Write("请输入要打印几行:"); int a = Convert.ToInt32(Console.ReadLine()); for (int i = 1; i = 0; j--) {...
分类:其他好文   时间:2015-07-14 13:21:22    阅读次数:102
c#语言
Console.ReadLine(); ——读取键盘按键Console.ReadKey(); ——读取输入内容输出语句:Console.WriteLine(写要输出的字符串); ——自动换行Console.Write(写要输出的字符串); ——不自动换行注释的三种方式:// 注释一行/**/ 注释一...
分类:编程语言   时间:2015-07-14 13:04:54    阅读次数:156
关于 in.readLine() 卡死的有关问题
一般有两种情况 检查服务端out.print();方法这里是否出错了,如果要使用in.readline() 那么服务器端就要使用 out.println(); (这个是网上说的) out=new PrintWriter(this.socket.getOutputStream(),true); 新件...
分类:其他好文   时间:2015-07-10 19:22:57    阅读次数:175
输入几个分数,去除最高2个,最低2个,求和以后再求平均分(5个以上)
Console.WriteLine("请输入分数的个数:"); int a = Convert.ToInt32(Console.ReadLine()); int [] fs = new int [a]; if (a < 5) ...
分类:其他好文   时间:2015-07-10 00:23:25    阅读次数:81
手机号抽奖、福利彩票抽奖
手机号排序 Console.WriteLine("请输入手机号的个数:"); int a = Convert.ToInt32(Console.ReadLine()); string[] sj = new string[a]; for ...
分类:移动开发   时间:2015-07-10 00:07:40    阅读次数:148
球员成绩输入、排序
Console.WriteLine("请输入球员的个数:"); int a = Convert.ToInt32(Console.ReadLine()); int[] n = new int[a];//定义一维数组 for (int i = 0; ...
分类:编程语言   时间:2015-07-10 00:03:42    阅读次数:217
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!