码迷,mamicode.com
首页 >  
搜索关键字:private    ( 23917个结果
窗体或控件的两种拖动方式
第一种音量调节的示例#region 音量控制 private Point mouse_offset; private void pictureBox7_MouseDown(object sender, MouseEventArgs e) { ...
分类:Windows程序   时间:2014-06-13 06:56:03    阅读次数:384
WPF绘制折线
WPF后台绘制折线,填充到一个GRID下private void btnPreview_Click(object sender, RoutedEventArgs e) { GridImg.Children.Clear(); System.Dr...
分类:其他好文   时间:2014-06-12 20:08:53    阅读次数:816
DBOperate.cs
usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Web;usingSystem.Data;usingSystem.Data.SqlClient;usingSystem.Configuration;///<summary>///DBOperate的摘要说明///</summary>publicclassDBOperate{privatestaticSqlConnectioncon=..
分类:数据库   时间:2014-06-10 23:15:36    阅读次数:314
C++ 写Log
classMYLog { public: ~MYLog(void); staticMYLog*Log(); boolOpenLogFile(conststring&sFilePath); voidMessage(conststring&sFileName,conststring&sFunc,constlong&lLine,conststring&sMessage); private: staticMYLog*m_pInstance; MYLog(void); voidG..
分类:编程语言   时间:2014-06-10 22:30:53    阅读次数:339
java:I/O 根据用户输入反馈信息
import java.io.*;class userInputIO{ //Java中成员变量有默认初始化,也就是如果不显式设置初始值的话就会被初始化为其类型的默认值(0、false、null等)。 private BufferedReader buffered...
分类:编程语言   时间:2014-06-10 20:15:03    阅读次数:250
基础练习 - 数值交换
题目 1 声明两个变量:int n1 = 10,n2= 20,要求将两个变量叫唤,最后输出n1为20,n2为10. (扩展*: 不使用第三个变量如何交换) 解决方案 基本方法 private static void BasicMethod() { int n1 = 10; ...
分类:其他好文   时间:2014-06-10 19:53:33    阅读次数:263
C++ 单件模式实现及对象释放
单件模式: 单件模式即在整个应用程序中只有一个类实例且这个实例所占资源在整个应用程序中是共享的。 单件模式的C++实现(构造函数、拷贝构造函数、赋值操作符均需重写): #include class CSingleton { private: CSingleton() { std::cout<<"Singleton Constructed."<<std:...
分类:编程语言   时间:2014-06-10 18:22:16    阅读次数:258
Effective C++:条款12:复制对象时勿忘其每一个成分
(一) 一个继承体系的声明: class Date {...}; class Customer { public: ... private: string name; Date lastTransaction; }; class PriorityCustomer : public Customer { public: PriorityCustomer(const...
分类:编程语言   时间:2014-06-10 17:45:35    阅读次数:289
Http请求响应
// requestUrl:地址?xx=xx private string GetContentFromUrll(string requestUrl) { string _StrResponse = ""; HttpWebRequest...
分类:其他好文   时间:2014-06-10 16:22:14    阅读次数:129
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!