10 2007 档案
摘要:char buf[33]={"\0"}; srand(time(NULL)); for (int i=0;i48) || (c66) || (c97)) { break; } c=rand()%122; } buf[j]=c; } printf("%s\n",buf); }
阅读全文
摘要:1 文档类 (1) Doxygen 参考站点:http://www.doxygen.org Doxygen是一种适合C风格语言(如C++、C、IDL、Java甚至包括C#和PHP)的、开放源码的、基于命令行的文档产生器。 (2) C++2HTML 参考站点:http://www.bedaux.net/cpp2html/ 把C++代...
阅读全文
摘要:Boost中比较有名气的有这么几个库: Regex 正则表达式库 Spirit LL parser framework,用C++代码直接表达EBNF Graph 图组件和算法 Lambda 在调用的地方定义短小匿名的函数对象,很实用的functional功能 concept check 检查泛型编程中的concept Mpl 用模板实现的元编程框架 Thread 可移植的C++多线程库 Pytho...
阅读全文
摘要:#include #include int main( void ) { FILE *stream; typedef struct _tt{ int a; int b; char buf[20]; }tt; tt temp; temp.a=10; temp.b=20; strcpy(temp.buf,"hello"); int c=sizeof(temp); ...
阅读全文
摘要:#include "stdafx.h" #include using namespace std; int main(int argc, char* argv[]) { printf("Hello World!\n"); string s1="hello world!"; printf("s1.find('o')=%d \n",s1.find('o')); printf("s1.f...
阅读全文
摘要:printf("%s\n%s\n",getenv("temp"),getenv("windir")); _putenv( "LIB=c:\\mylib;c:\\yourlib" );
阅读全文
摘要:#include "stdafx.h" #include #include int main(int argc, char* argv[]) { printf("Hello World!\n"); srand(time(0)); for (int i=0;i<10;i++) { printf("%x ",(int)rand()%1000); } printf("\n"); ...
阅读全文
摘要:#include #include #include void main( int argc, CHAR *lpszArgv[ ]) { PSHARE_INFO_502 BufPtr,p; NET_API_STATUS res; //LPTSTR lpszServer = NULL; DWORD er=0,tr=0,resume=0, i; do // begin do {...
阅读全文