#pragma warning(disable:4996)
#include <cstdio>
#include <Windows.h>
#include <tchar.h>
#include <vector>
using namespace std;
/*
submit time : 2
1. Runtime Error
[]
request :
Given a ma...
分类:
其他好文 时间:
2014-07-23 21:34:35
阅读次数:
274
网上找了很多资料,PHP的比较多,然后找到有csv文件的,处理起来很麻烦,国外的网站速度很慢。
最后还是去页面上抓取数据,我是从中国银行抓取的,各位可去其他网站抓取。
1、模拟请求URL。
string url = "http://srh.bankofchina.com/search/whpj/search.jsp?pjname=1316";
HttpWebRequest reques...
分类:
Web程序 时间:
2014-07-23 17:00:01
阅读次数:
228
People who use computers ghd hair straighteners go for movie star times, Search for, Stop GHD Peacock 2013 well-accepted showdowns, And luxuriate in b...
分类:
其他好文 时间:
2014-07-23 15:15:36
阅读次数:
232
MatrixTime Limit:3000MSMemory Limit:65536KTotal Submissions:17976Accepted:6737DescriptionGiven an N*N matrix A, whose elements are either 0 or 1. A[i,...
分类:
其他好文 时间:
2014-07-23 14:47:26
阅读次数:
265
实现图片轮播,以前的大图片比例会在GuideGallery中自动缩放,后来编辑把图片大小修改了。在大屏不能适应屏幕。试了很多方法终于解决。先说Imageview的属性。可在java代码中实现,也可以在Xml文件中设置。
imageView.setScaleType(ImageView.ScaleType.FIT_XY );
这里我们重点理解ImageView的属性android:scaleTy...
分类:
移动开发 时间:
2014-07-23 13:12:06
阅读次数:
235
function getUrlParam(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = window.location.search.substr(1).match(reg); ...
分类:
Web程序 时间:
2014-07-23 13:00:46
阅读次数:
204
2 solutions: bin-search and Newton iteration.class Solution {public: int _sqrt(long long tgt, long long i0, long long i1) { long long can...
分类:
其他好文 时间:
2014-07-23 12:02:06
阅读次数:
236
Givenn, generate all structurally uniqueBST's(binary search trees) that store values 1...n.For example,Givenn= 3, your program should return all 5 uni...
分类:
其他好文 时间:
2014-07-22 22:42:33
阅读次数:
243
加法还可用友元函数,两个参数的方式实现。#include #include #include #include using namespace std;class Matrix{public: Matrix(){memset(this->_mat,0,sizeof(this->_mat));}...
分类:
其他好文 时间:
2014-07-22 22:34:53
阅读次数:
262
利用matrix可以实现各种图片的特效,今天就用marix加上渐变色实现图片倒影的效果,步骤如下: ?1. 获取需要倒影效果的图片,这里取原图片的一半 ?2. 添加颜色渐变到倒影图片上 ? 具体的实现如下面代码所述...
分类:
其他好文 时间:
2014-07-22 22:32:53
阅读次数:
169