摘要: 来源:http://blog.csdn.net/jin20000/article/details/3136791 互斥进程(程序),简单点说,就是在系统中只能有该程序的一个实例运行.现在很多软件都有这功能,如Maxthon可以设置为"只允 许打开一个窗体",还有Bitcomet等.我也是看到这... 阅读全文
posted @ 2015-06-13 22:12 Mr.Ethan 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 来源:http://www.2cto.com/kf/201401/274489.html 现在很多软件如360杀毒软件、酷狗音乐都拥有最小化至任务栏并在系统托盘区留下图标,我的项目同样需要该功能.所以本文主要叙述如何使用C#让窗体最小化至任务栏,同时在系统托盘区的图标点击左键能显示窗体,右键能关联... 阅读全文
posted @ 2015-06-13 21:51 Mr.Ethan 阅读(2847) 评论(0) 推荐(0) 编辑
摘要: 转载:http://www.cnblogs.com/xshy3412/archive/2007/08/29/874362.html1,int转成string用toString或者Convert.toString()如下例如:int varInt = 1;string varString = Conv... 阅读全文
posted @ 2015-06-11 22:58 Mr.Ethan 阅读(373) 评论(0) 推荐(0) 编辑
摘要: 转载:http://www.accessoft.com/article-show.asp?id=6135经常碰到一些忘记表名称的情况,此时只记得个大概,此时可通过查询系统表Sysobjects找到所要的表名,如要查找包含用户的表名,可通过以下SQL语句实现,Select *From sysobjec... 阅读全文
posted @ 2015-06-11 16:09 Mr.Ethan 阅读(1575) 评论(0) 推荐(0) 编辑
摘要: a *= a + b *c;不管等号右边有没有括号,总是先算右边;即等价于 a = a *(a + b*c);using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.... 阅读全文
posted @ 2015-05-19 14:53 Mr.Ethan 阅读(408) 评论(0) 推荐(0) 编辑
摘要: /*-------------------------------- 功能说明: 批量DropTable 使用说明: 使用时一定要小心,因为删选表的where条件是like所有必须保证where 后的like确定与你要删除表名相匹配 -----------------... 阅读全文
posted @ 2015-05-19 10:57 Mr.Ethan 阅读(951) 评论(0) 推荐(0) 编辑
摘要: 数据结构 严蔚敏 P48#include#include#includeusing namespace std;string conversion(int num){ stack intstack; int temp; string str,strtemp; while (num){ intsta... 阅读全文
posted @ 2015-01-21 15:53 Mr.Ethan 阅读(361) 评论(0) 推荐(0) 编辑
摘要: 转载:http://www.cnblogs.com/graphics/archive/2010/07/07/1772733.html为什么静态成员不能在类内初始化在C++中,类的静态成员(static member)必须在类内声明,在类外初始化,像下面这样。class A{ private: ... 阅读全文
posted @ 2015-01-16 11:33 Mr.Ethan 阅读(1257) 评论(0) 推荐(0) 编辑
摘要: 转载:http://blog.163.com/shi_shun/blog/static/23707849200931684635666/C++ 文件操作例子C++ 通过以下几个类支持文件的输入输出:ofstream: 写操作(输出)的文件类 (由ostream引申而来)ifstream: 读操作(输... 阅读全文
posted @ 2015-01-15 16:26 Mr.Ethan 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 数组面试题#includeusing namespace std;//数组求和int sum(int *a, int n){ return n == 0 ? 0 : sum(a, n - 1) + a[n - 1];}//递归法数组求和int sum2(int *a, int n){ int s =... 阅读全文
posted @ 2014-12-28 22:23 Mr.Ethan 阅读(288) 评论(0) 推荐(0) 编辑