一、封装特性: 这是一种隐藏的特性。可以用一个公式来展示类的封装特性: 封装的类=数据 + 对此数据进行的操作(即算法) 通俗的说,封装就是:包起外界不必要知道的东西,只向外界展露可供展示的东西。 在面向对象理论中,封装这个概念拥有更为宽广的含义。小到一个简单的数据结构,大到一个完成的软件子...
分类:
Windows开发 时间:
2015-08-25 21:02:19
收藏:
0 评论:
0 赞:
0 阅读:
296
利用百度地图的服务将经纬度转换为米单位坐标using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Net;using System.IO;using System.D...
分类:
Windows开发 时间:
2015-08-25 20:55:29
收藏:
0 评论:
0 赞:
0 阅读:
374
1.SetTimer:在控制台应用程序中同样可以用SetTimer实现定时器的效果。
普通的win32程序中定时器的应用很多也很方便,但是在win32控制台中也是可以使用定时器的,利用的是windows程序的消息循环机制,如下:
#include
#include
using namespace std;
//定时器ID
DWORD dwTimerId = 0;
void CALLB...
分类:
Windows开发 时间:
2015-08-25 19:35:59
收藏:
0 评论:
0 赞:
0 阅读:
296
在C盘的Program Files文件夹下安装了一个jdk然后在cmd命令行中,Program Files名字中有空格不能直接用于是:http://blog.csdn.net/rick_123/article/details/7356619我参考的是第一种方法
分类:
Windows开发 时间:
2015-08-25 19:27:39
收藏:
0 评论:
0 赞:
0 阅读:
248
''''''功能说明:读取文件内容并设置其中所有的域''''''FunctionDoFieldFormFile(ByValstrContractGUIDAsString)AsStringDimstrFileGUIDAsString=MyDB.GetDataItemString("SELECTTOP1...
分类:
Windows开发 时间:
2015-08-25 19:24:09
收藏:
0 评论:
0 赞:
0 阅读:
313
/***** 功能: 字符串格式化替换操作***/String.prototype.format = function () { var args = arguments; return this.replace(/\{(\d+)\}/g, function (m, i) { ...
分类:
Windows开发 时间:
2015-08-25 19:05:49
收藏:
0 评论:
0 赞:
0 阅读:
139
1 package com.mhb; 2 3 import java.io.IOException; 4 import java.io.PrintWriter; 5 6 import javax.servlet.ServletContext; 7 import javax.servlet.Se...
分类:
Windows开发 时间:
2015-08-25 18:58:09
收藏:
0 评论:
0 赞:
0 阅读:
294
1.到http://www.putty.org/下载并安装SSH客户端 2.查看是否安装ssh服务 在ubuntu终端命令界面键入:#ssh localhost 如果出现下面提示则表示还没有安装:#ssh: ...
分类:
Windows开发 时间:
2015-08-25 18:57:19
收藏:
0 评论:
0 赞:
0 阅读:
715
public void ExportToSvc1(string strFileName) { string strPath = strFileName + ".csv"; StringBuilder strValue = new Strin...
分类:
Windows开发 时间:
2015-08-25 18:55:50
收藏:
0 评论:
0 赞:
0 阅读:
338
前提条件:要明白在TWinControl有以下四个函数的存在,注意都是虚函数: procedure Invalidate; override; procedure Update; override; procedure Repaint; override; // 相当于前两句的组合 ...
分类:
Windows开发 时间:
2015-08-25 18:46:09
收藏:
0 评论:
0 赞:
0 阅读:
502
if (txt01.Text != "") { this.lbzhantie.Items.Clear(); this.dtzhuanhuo.Rows.Clear(); if (txt01...
分类:
Windows开发 时间:
2015-08-25 18:43:39
收藏:
0 评论:
0 赞:
0 阅读:
339
using System;using System.Collections.Generic;using System.Text;using System.Data.SqlClient;using System.Collections;using System.Data;namespace TestW...
分类:
Windows开发 时间:
2015-08-25 18:42:30
收藏:
0 评论:
0 赞:
0 阅读:
187
////// exec proceudre2 //System.Data.SqlClient.SqlConnection sqlcon = new System.Data.SqlClient.SqlConnection("server=(local);database=pubs;uid=sa;pwd...
分类:
Windows开发 时间:
2015-08-25 18:41:39
收藏:
0 评论:
0 赞:
0 阅读:
251
Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOT\ftp]@="URL:File Transfer Protocol""AppUserModelID"="Microsoft.InternetExplorer.Default""EditFla...
分类:
Windows开发 时间:
2015-08-25 18:38:29
收藏:
0 评论:
0 赞:
0 阅读:
171
C#对Excel的操作
分类:
Windows开发 时间:
2015-08-25 18:35:50
收藏:
0 评论:
0 赞:
0 阅读:
141
XmlDocumentxDoc=newXmlDocument();xDoc.LoadXml(System.Web.HttpUtility.UrlDecode(mCuTable.DATASOURCE));sDataSourceName=xDoc.SelectNodes("datasource/data...
分类:
Windows开发 时间:
2015-08-25 18:34:19
收藏:
0 评论:
0 赞:
0 阅读:
344
记得先引用DLLprivate FilterInfoCollection videoDevices; private VideoCaptureDevice videoSource; BLL.AWBListBLL alb = new AWBListBLL(); ...
分类:
Windows开发 时间:
2015-08-25 18:32:39
收藏:
0 评论:
0 赞:
0 阅读:
317
1、填写CA名称后在生成密钥时提示:csp配置不正确或安装不完整。 原因:可能的原因为CS服务(Crysptographic Service)没有启动。 ps:该服务依赖RPC服务,但RPC服务会有两个,一个是RPC,另一个是RPC(Locator),我的是第二个没有启动。启动后,安装继续。2、.....
分类:
Windows开发 时间:
2015-08-25 18:32:19
收藏:
0 评论:
0 赞:
0 阅读:
628
/// /// ikmb@163.com/// public class MyRAS { /// /// RAS加密 /// /// 公钥 /// 明文 /// 密文 public stat...
分类:
Windows开发 时间:
2015-08-25 18:31:49
收藏:
0 评论:
0 赞:
0 阅读:
333
private void printDocument1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e) { Bitmap bit = new Bitmap(this.W...
分类:
Windows开发 时间:
2015-08-25 18:25:29
收藏:
0 评论:
0 赞:
0 阅读:
257