• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






dannyboy

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

随笔分类 -  基础算法

 
assert的用法
摘要:#include <stdio.h>#define NDEBUG //assert影响程序性能,程序确定正确后禁用assert#include <assert.h>#include <stdlib.h>#include <iostream.h>int main( void ){char *fp=NULL;assert( fp ); //所以这里出错c... 阅读全文
posted @ 2009-11-10 00:35 dannyboy 阅读(158) 评论(0) 推荐(0)
stl_string用法
摘要:#include <string>#include <iostream>using namespace std;int main(){string show;string show2="aaaa";show="bbbb";cout<<"交换两个字符串的内容"<<endl;show.swap(show2); cout<<show<&l... 阅读全文
posted @ 2009-11-08 01:49 dannyboy 阅读(778) 评论(0) 推荐(0)
__int64
摘要:#include <iostream.h> #include <fstream.h> #include <math.h> #include <time.h> #include <conio.h> #include <stdlib.h> #include <stdio.h> #include <limits.h... 阅读全文
posted @ 2009-10-22 23:54 dannyboy 阅读(111) 评论(0) 推荐(0)