链表
摘要:#include "stdafx.h" #include #include #include #include using namespace std; const int MAX_SIZE = 256; struct node { char *str; struct...
阅读全文
posted @
2012-01-10 00:49
o(∩_∩)o...
阅读(218)
推荐(0)
c++ 从文件中读取字符串 按字典排序 并统计个数
摘要:#include #include #include #include #include #include #include using namespace std; const int MAX_SIZE = 40; void GetWords(vector &vec) { char ...
阅读全文
posted @
2012-01-06 00:07
o(∩_∩)o...
阅读(3221)
推荐(0)
c++ 字典排序 并统计字符串个数
摘要:#include #include #include #include #include #include using namespace std; int _tmain(int argc, _TCHAR* argv[]) { vector vec; vec.push_back("Thi...
阅读全文
posted @
2012-01-05 23:35
o(∩_∩)o...
阅读(2903)
推荐(0)
c/c++ 字符串分割 (strtok)
摘要:int main() { vector strvec; char str[] ="addd,bs,cgwg, we;f d*e"; const char * split = ",* ;"; char * p; p = strtok (str,split); while(p!=NULL) { stri...
阅读全文
posted @
2012-01-05 23:31
o(∩_∩)o...
阅读(2996)
推荐(0)