基于excel9.h的excel处理;#include "excel9.h"#include using namespace std;class excel_lwn{ public: excel_lwn() { CoInitialize(NULL); i...
分类:
其他好文 时间:
2015-05-16 17:47:06
阅读次数:
95
前言前面讲到只是爬取了title和url,那么怎么爬取文章,其实原理是一样的。过程保存文章内容的Item我们在item.py中添加一项,如下:class CsdnArticleItem(Item):
title = Field()
article = Field()
pass我们保存文章的题目和内容。分析文章的链接csdn是怎么来保存一篇文章的,我们来看一个url:
htt...
分类:
其他好文 时间:
2015-05-16 16:39:53
阅读次数:
138
本类实现参考 php manual 评论
/**
* function: 解压zip 格式的文件
* author:friker
* date:2015-15-14
* reference:http://php.net/manual/zh/ref.zip.php
* all rights reserved:wujiangwei123@126.com
*/
class Un...
分类:
Web程序 时间:
2015-05-16 16:39:38
阅读次数:
119
JavaScript模拟jQuery选择器实现了以下五种选择方法:$("#id")$(".class")$("tag")$("tag#id")$("tag.class") 1 function $(strSelector){ 2 var reId=/#/g; 3 var reClas...
分类:
Web程序 时间:
2015-05-16 16:20:13
阅读次数:
166
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication20{ public class Response { public strin...
分类:
其他好文 时间:
2015-05-16 16:14:31
阅读次数:
138
jsp中存在一个奇奇怪怪的bean标签。例如现在在java包中定义一个类test2package bean;public class test { private int number;public test(){ number=100;}public int get_number(){ re...
分类:
Web程序 时间:
2015-05-16 16:13:02
阅读次数:
107
??我们都知道C++ class中有三种成员函数,static(静态的),nonstatic(非静态的),virtual(虚拟的)各种成员函数的指针各有差别,下面是一个完整的样例:(注意红颜色的差别)class A{public: static void staticmember(){cout<<"...
分类:
编程语言 时间:
2015-05-16 16:11:45
阅读次数:
154
Delphi之virtual,dynamic,abstract 对象的方法能定义成静态(static)、虚拟(virtual)、动态(dynamic)或消息处理(message)。请看下面 的例子: TFoo = class procedure IAmAStatic; procedure IAmAV...
#include
using namespace std;
class Part //部件类
{
public:
Part();
Part(int i);
~Part();
private:
int val;
};
Part::Part()
{
val=0;
cout<<"调用Part的默认构造函数:"<<val<<endl;
}
Part::Pa...
分类:
其他好文 时间:
2015-05-16 14:57:31
阅读次数:
228
写一个能处理字符串的类。
#include
#include
using namespace std;
class String
{
public:
String( ); //默认构造函数
String(const char *s);
String(String &str); //构造函数
...
分类:
其他好文 时间:
2015-05-16 14:56:18
阅读次数:
128