摘要: /*问题:如果上述两表互相换一下:即表结构和数据为:姓名 语文 数学 物理张三 74 83 93李四 74 84 94想变成(得到如下结果): 姓名 课程 分数 ---- ---- ----李四 语文 74李四 数学 84李四 物理 94张三 语文 74张三 数学 83张三 物理 93--------------*/createtable tb(姓名 varchar(10) , 语文 int , 数学 int , 物理 int)insertinto tb values('张三',74,83,93)insertinto tb values('李四',74,84,9 阅读全文
posted @ 2011-10-12 11:41 pnljs 阅读(385) 评论(0) 推荐(0) 编辑
摘要: foreach (char chr in input) { //检查字母 if (char.IsLetter(chr)) { countLetters++; } //检查数字 if (char.IsDigit(chr)) { countDigits++; } //检查标点 if (char.IsPunctuation(chr)) { countPunctuation++; } } 阅读全文
posted @ 2011-10-12 11:33 pnljs 阅读(2279) 评论(0) 推荐(0) 编辑