最近在采集数据所以自己写了个小工具,一般的网站可以直接模拟浏览器发送请求,然后用正则表达式分析页面提取需要的信息。 1 HttpWebRequest
request = (HttpWebRequest)WebRequest.Create(url); 2 request.Method = "GET";...
分类:
其他 时间:
2014-04-29 00:09:15
收藏:
0 评论:
0 赞:
0 阅读:
312
::利用邮槽实现windons进程通信::一般情况下CreateMailslot()常被使用在进程通信的服务器上,在客户端则是用函数CreateFile()打开指定的邮槽之后进行相关的操作。::将通过有草读取数据的通信一方成为服务器,而通过邮槽写入数据的一方成为客户端。
1 /* 2 服务器端 3 ...
分类:
其他 时间:
2014-04-29 00:15:00
收藏:
0 评论:
0 赞:
0 阅读:
380
题目273 字母小游戏时间限制:1000 ms | 内存限制:65535 KB 难度:0描述
给你一个乱序的字符串,里面包含有小写字母(a--z)以及一些特殊符号,请你找出所给字符串里面所有的小写字母的个数,拿这个数对26取余,输出取余后的数字在子母表中对应的小写字母(0对应z,1对应a,2对应b....
分类:
其他 时间:
2014-04-29 01:00:19
收藏:
0 评论:
0 赞:
0 阅读:
399
using System;using System.Collections.Generic;using
System.Text;using System.Net.Sockets;using System.Net;using Common;using
System.Threading;using Sy...
分类:
其他 时间:
2014-04-29 01:06:16
收藏:
0 评论:
0 赞:
0 阅读:
1137
bin = BINaries /dev = DEVices /etc = ETCetera /lib
= LIBrary /proc = PROCesses /sbin = Superuser BINaries /tmp = TeMPorary /usr =
Unix Shared Resource...
分类:
其他 时间:
2014-04-29 01:04:20
收藏:
0 评论:
0 赞:
0 阅读:
439
本文涉及对象的赋值和复制(也称为克隆)。必要时,先看谭浩强教材P291-295的相关内容或PPT,重温一下有关概念。 一、一般情况
先看一个例子://例程1#include using namespace std;class Complex{public:
Complex(){real=0...
分类:
其他 时间:
2014-04-29 01:18:20
收藏:
0 评论:
0 赞:
0 阅读:
592
Control.Invalidate方法:使控件的特定区域无效并向控件发送绘制消息。通常情况下,用Invalidate()使区域无效就可触发该控件的重画了,但在一些条件下却没有触发重画.例如:
private void button1_Click(object sender, EventArg...
分类:
其他 时间:
2014-04-29 01:16:22
收藏:
0 评论:
0 赞:
0 阅读:
344
using System;using System.Collections.Generic;using
System.Linq;using System.Text;namespace ConsoleApplication2{ public class Plan {
publ...
分类:
其他 时间:
2014-04-29 01:20:17
收藏:
0 评论:
0 赞:
0 阅读:
347
1.Read Bitmap Dimensions and Type 读取图片的尺寸和类型
//创建一个Options,用于保存图片的参数 BitmapFactory.Options options = new
BitmapFactory.Options(); //设置是否只读取图片的参数信息 opt...
分类:
其他 时间:
2014-04-29 01:24:13
收藏:
0 评论:
0 赞:
0 阅读:
340
只是一个用EF写的一个简单的分页方法而已 慢慢的写吧。比如,第一步,先把所有数据查询出来吧。
1 //第一步。2 public IQueryable LoadPagesForUserInfos(int pageSize, int pa...
分类:
其他 时间:
2014-04-29 01:28:15
收藏:
0 评论:
0 赞:
0 阅读:
416
定义了UNIQUE约束的字段中不能包含重复值,可以为一个或多个字段定义UNIQUE约束。因此,UNIQUE即可以在字段级也可以在表级定义,在UNIQUED约束的字段上可以包含空值。ORACLE自动会为具有PRIMARY
KEY约束的字段(主码字段)建立一个唯一索引和一个NOT NULL约束,定义PR...
分类:
其他 时间:
2014-04-29 01:32:10
收藏:
0 评论:
0 赞:
0 阅读:
402
using System;using System.Collections.Generic;using
System.Text;using Microsoft.Win32;using System.Threading;using System.IO;using
System.Security.Cry...
分类:
其他 时间:
2014-04-29 01:36:15
收藏:
0 评论:
0 赞:
0 阅读:
404
字符转换为数字:#include atoi(); 将字符转换为整型 例:char
ch1;int i=atoi(ch1); atol(); 将字符转化为长整型 例:char ch2;long l=atol(ch2); atof();
将字符转化为浮点型 例:char ch3;f...
分类:
其他 时间:
2014-04-29 01:38:12
收藏:
0 评论:
0 赞:
0 阅读:
356
3SumGiven an array S of n integers, are there
elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the
array which gives the sum...
分类:
其他 时间:
2014-04-29 01:42:06
收藏:
0 评论:
0 赞:
0 阅读:
415
IP相关常识一、IP地址概念IP地址是一个32位的二进制数,它由网络ID和主机ID两部份组成,用来在网络中唯一的标识的一台计算机。网络ID用来标识计算机所处的网段;主机ID用来标识计算机在网段中的位置。IP地址通常用4组3位十进制数表示,中间用“.”分隔。比如,192.168.0...
分类:
其他 时间:
2014-04-29 02:13:38
收藏:
0 评论:
0 赞:
0 阅读:
709
先建立一个WebApplicationWeb.config -->
Server.ashxusing System;using System.Data;using System.Web;using
System.Collections;using ...
分类:
其他 时间:
2014-04-29 02:23:32
收藏:
0 评论:
0 赞:
0 阅读:
844
1
:按住shift+ctrl然后按←或→可快速选中一行中的某一部分,相当于双击鼠标选中。当你想在代码末尾加注释的话,这个方法很好用输入文字-》光标移到文字末尾-》按住shift+ctrl+←便会选中文字-》其他操作:删除、注释(ctrl+/)等等。2:shift+ctrl键组合+↑↓。可实现类似鼠...
分类:
其他 时间:
2014-04-29 02:27:25
收藏:
0 评论:
0 赞:
0 阅读:
377
编程流程:(1)打开设备open("/dev/fb0",O_RDWR);(2)获取framebuffer设备信息.ioctl(intfb,FBIOGET_FSCREENINFO,&finfo);ioctl函数是实现对设备的信息获取和设定,第一个参数为文件描述符,第二个参数为具体设备的参数,对于fra...
分类:
其他 时间:
2014-04-29 02:31:15
收藏:
0 评论:
0 赞:
0 阅读:
502
using System;using System.Collections.Generic;using
System.Linq;using System.Text;using System.Threading;using System.Net;namespace
ConsoleApplication...
分类:
其他 时间:
2014-04-27 09:57:03
收藏:
0 评论:
0 赞:
0 阅读:
473
TOPIC about_EntityFrameworkSHORT DESCRIPTION
Provides information about Entity Framework commands.LONG DESCRIPTION This topic
describes the E...
分类:
其他 时间:
2014-04-29 02:41:18
收藏:
0 评论:
0 赞:
0 阅读:
329