摘要: string[] lines = System.IO.File.ReadAllLines(@"C:\Users\Administrator\Desktop\2.txt",Encoding.Default); foreach (string i in... 阅读全文
posted @ 2015-09-22 11:32 尘梦 阅读(1908) 评论(0) 推荐(0) 编辑
摘要: string email = Console.ReadLine(); int atIndex = email.IndexOf('@'); string userName = email.Substring(0, atIndex); ... 阅读全文
posted @ 2015-09-22 10:59 尘梦 阅读(165) 评论(0) 推荐(0) 编辑
摘要: string[] arr = Console.ReadLine().Split(' '); string result = string.Empty; for (int i = arr.Count() - 1; i >= 0; i--) ... 阅读全文
posted @ 2015-09-22 10:55 尘梦 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 运算类 public class yunsuan { public static operation create(string operate) { operation oper = null; switch (operate) { ... 阅读全文
posted @ 2015-09-21 09:02 尘梦 阅读(197) 评论(0) 推荐(0) 编辑
摘要: public class Program { static void Main(string[] args) { Console.WriteLine("请输入语文成绩和数学成绩"); string x = Console... 阅读全文
posted @ 2015-09-15 09:25 尘梦 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 验证码刷新<?php$img=imagecreate(50, 20); //创建画布$color=imagecolorallocate($img, 0, 0, 0); //创建背景颜色$font=imagecolorallocate($img, 255, 255, 255);//创建文本颜色$po... 阅读全文
posted @ 2015-09-12 21:58 尘梦 阅读(150) 评论(0) 推荐(0) 编辑
摘要: class Program { static void Main(string[] args) { ceshi wo; Student av = new Student(); wo=new ceshi(a... 阅读全文
posted @ 2015-09-10 09:33 尘梦 阅读(170) 评论(0) 推荐(0) 编辑
摘要: class db{ /** * 定义数据库连接 */ /** * return 返回一个值叫做链式调用 *每执行完一个方法就会返回当前对象 *返回的对象 可以调用类中的成员变量和成员方法 */ protected $mysqli... 阅读全文
posted @ 2015-09-09 20:43 尘梦 阅读(142) 评论(0) 推荐(0) 编辑
摘要: mysqli_affected_rows() 返回前一个 Mysql 操作的受影响行数。mysqli_autocommit() 打开或关闭自动提交数据库修改功能。mysqli_change_user() 更改指定数据库连接的用户。mysqli_character_set_name(... 阅读全文
posted @ 2015-09-08 14:28 尘梦 阅读(189) 评论(0) 推荐(0) 编辑
摘要: public delegate int ceshi(int a, int b); static int ax(int a, int b) { return a * b; } static int bx(int a, int b) { ... 阅读全文
posted @ 2015-09-08 11:26 尘梦 阅读(158) 评论(0) 推荐(0) 编辑