摘要: 今天偶然写两个灰常简单的类,Point,Rectangle,即左上角和右下角标识一个矩形的类。#include class Point{public: Point(); Point(int x); Point(int x,int y); int getX(); int getY(); void setX(int new_val); void setY(int new_val); void printPoint();private: int x; int y;};Point::Point(int x):x(x),y(x){};Point::Point():x(0),y(0){... 阅读全文
posted @ 2013-12-18 20:04 画家与我 阅读(1709) 评论(0) 推荐(0) 编辑
摘要: telnet 127.0.0.1 11211之后,可以用的命令有:(1)stats(2)stats itemsReturns some information, broken down by slab, about items stored in memcached.(3)stats slabsReturns more information, broken down by slab, about items stored in memcached. More centered to performance of a slab rather than counts of particular 阅读全文
posted @ 2013-12-18 12:44 画家与我 阅读(332) 评论(0) 推荐(0) 编辑