![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
工程算法
无名_1989
1、每天坚持读书1小时;2、坚持提升专业,成为单位专业权威;3、战胜两个坏毛病——拖延与抱怨;4、先从形象上改变,提升你的自信;5、时常反省自己,但不诋毁自己;6、向优秀的人学习;7、坚持早睡早起;8、坚持体育锻炼;9、保持微笑;10、帮助他人
展开
-
检测ip地址字符串是否正确
bool isValidIP(char* str){ if (NULL==str) { return false; } bool preIsNum=false; int numOfPoint=0; int numOfNum=0; char *p=str; while ('\0'!=*p&&numOfPoint<=3&&numOfNum<...转载 2018-03-19 20:07:52 · 373 阅读 · 0 评论 -
hash操作
#include <iostream> #include <ctime> using namespace std; const int NIL= -1;//为了简便,NIL设为-1 const int m = 20; //hash表大小 void InitHash(int T[m]) { for (int i=0 ; i<m ; i++) T[i] = NI...转载 2018-03-21 08:30:09 · 472 阅读 · 0 评论