野百合也有春天

导航

11 2010 档案

验证数字的正则表达式集
摘要:验证数字:^[0-9]*$ 验证n位的数字:^\d{n}$ 验证至少n位数字:^\d{n,}$ 验证m-n位的数字:^\d{m,n}$ 验证零和非零开头的数字:^(0|[1-9][0-9]*)$ 验证有两位小数的正实数:^[0-9]+(.[0-9]{2})?$ 验证有1-3位小数的正实数:^[0-9]+(.[0-9]{1,3})?$ 验证非零的正整数:^\+?[1-9][0-9]*$ 验证非零的负... 阅读全文

posted @ 2010-11-29 17:17 flydream 阅读(162) 评论(0) 推荐(0)

zlib 用法
摘要:#include "zlib.h" int _tmain(int argc, _TCHAR* argv[]) { //原始数据 const unsigned char strSrc[]="0.3266555f232662236 6523333"; unsigned char buf[1024]={0},strDst[1024]={0}; unsigned lon... 阅读全文

posted @ 2010-11-28 22:35 flydream 阅读(428) 评论(0) 推荐(0)

C++开源库
摘要:一般:www.boost.org图形库:AGG: http://www.antigrain.com/ 阅读全文

posted @ 2010-11-28 16:26 flydream 阅读(275) 评论(0) 推荐(0)

精美图标网址
摘要:精美图标:http://findicons.com/http://www.iplaysoft.com/iconfinder.html http://www.iplaysoft.com/findicons.html http://www.iconpng.com/http://www.ipc.me/14-free-phone-apps-icons.htmlhttp://www.iconarchive.... 阅读全文

posted @ 2010-11-20 19:58 flydream 阅读(234) 评论(0) 推荐(0)

std::pair用法
摘要:#include #include #include using namespace std; int main () { pair product1 ("tomatoes",3.25); pair product2; pair product3; product2.first = "lightbulbs"; // type of first is stri... 阅读全文

posted @ 2010-11-01 09:49 flydream 阅读(8690) 评论(1) 推荐(0)