一、BubbleSort and XListview1、BubbleSort(1)analysistraverse、compare、exchange、cycle、optimizestrategyloop outside times n-1loop inside times n-i-1 it redu...
分类:
其他好文 时间:
2014-07-09 15:28:14
阅读次数:
185
安装mysql出现Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH),提示解决方法[root@localhost software]# cd mysql-5.5.11[root@localhost mysql-5.5...
分类:
其他好文 时间:
2014-07-09 15:23:41
阅读次数:
228
static void Main(string[] args) { char ch, c; Console.WriteLine("请输入一个字符;"); ch = char.Parse(Console .ReadLine ()); if ((ch >= 'A') && (ch <= 'Z')) c ...
分类:
其他好文 时间:
2014-07-09 15:15:21
阅读次数:
205
static void Main(string[] args) { double d; int i, e; Console.WriteLine("请输入一个整数:"); d = double.Parse(Console .ReadLine ()); i = (int)d; if (d - i > 0...
分类:
其他好文 时间:
2014-07-09 15:14:36
阅读次数:
162
Python学习(3)切片(Slice):根据索引范围取出字符串里面的内容,比如: l=range(100) l[:8] [0, 1, 2, 3, 4, 5, 6, 7] l[:10:2] [0, 2, 4, 6, 8]list、tuple、set 、字符串都可以做切片操作迭代(iteration)...
分类:
编程语言 时间:
2014-07-09 14:48:16
阅读次数:
160
C#转义字符·一种特殊的字符常量;·以反斜线"\"开头,后跟一个或几个字符。·具有特定的含义,不同于字符原有的意义,故称“转义”字符。 ·主要用来表示那些用一般字符不便于表示的控制代码。 ·它的作用是消除紧随其后的字符的原有含义 ·用一些普通字符的组合来代替一些特殊字符,由于其组合改变了原来字符表示...
分类:
其他好文 时间:
2014-07-09 14:27:34
阅读次数:
172
Best Cow LineTime Limit:1000MSMemory Limit:65536KTotal Submissions:9284Accepted:2826DescriptionFJ is about to take hisN(1 ≤N≤ 2,000) cows to the annua...
分类:
其他好文 时间:
2014-07-09 14:20:50
阅读次数:
2624
注意将form2中的botton2的modyfier属性修改为publicform1代码usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawin...
read属于系统调用,它的缓存是基于内核的缓冲,是记在内核空间的. 而fgetc是标准函数, 是在用户空间I/O缓冲区的比如用fgetc读一个字节,fgetc有可能从内核中预读1024个字节到I/O缓冲区中,再返回第一个字节,这时该文件在内核中记录的读写位置是1024,而在FILE结构体中记录的读写...
分类:
其他好文 时间:
2014-07-09 13:43:13
阅读次数:
282
static void Main(string[] args) { const string UN = "admin"; const string PW = "123456"; string usename, password; int i=0; while (i 3) { Console....
分类:
其他好文 时间:
2014-07-09 13:42:30
阅读次数:
172