由买买提看人间百态

topics

全部话题 - 话题: murl
(共0页)
k***t
发帖数: 276
1
参照网上的思路写了一个。哪位大拿给Review一下。谢了。
我平时只写C,不用C++。所以可能有初级错误:)
#include
#include // HashMap
#include
using namespace std;
// cache entry
struct Entry {
int v; // dummy structure
};
class LRU {
private:
list > mlist;
unordered_map >::iterator> mht;
int cnt;
const static int MAX_SIZE = 10000;
public:
LRU () {cnt=0;}
~LRU () {}
void addEntry (string mURL, Entry mEntry) {
mlist.push_fron... 阅读全帖
j*******r
发帖数: 1
2
来自主题: Working版 - check this out
http://tiger.census.gov/cgi-bin/mapsurfer?lon=-96&lat=37&wid=50&ht=24.1
data is a bit out-dated but still interesting... for example
http://tiger.census.gov/cgi-bin/mapsurfer?infact=2&act=out&outfact=2
&on=CITIES&on=places&tlevel=censusb&tvar=income&tmeth=i&mlat=&mlon=
&msym=bigdot&mlabel=&murl=&lat=37.34030&lon=-121.99485&wid=0.062&ht=0.030&
conf=mapnew.con&map.x=255&map.y=214
shows family income data in santa clara area, detailed to blocks.
(共0页)