• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • YouClaw
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
Free Man
博客园 | 首页 | 新随笔 | 新文章 | 联系 | | 管理

随笔分类 -  C++

All about C++
 
DFS
摘要:权当备忘了主要参考《数据结构严尉敏版》但是是c++实现CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#include#includeusing namespace std;class AdjListGraph{public: AdjLi... 阅读全文
posted @ 2009-04-08 19:02 Lox 阅读(357) 评论(0) 推荐(0)
软件技术基础作业
摘要:软件技术基础课的作业,我到现在才开始补。挺简单的一道题,就是我比较钻牛角尖。非得弄一个类。竟然写了半天。 不过课程倒是很水的。所以今天没去上,专心调程序了。 Code Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->/**//* ... 阅读全文
posted @ 2009-03-25 16:01 Lox 阅读(325) 评论(0) 推荐(0)
zoj1199
摘要:关键是要考虑到两个两个圆的直径r1==r2的情况和一个圆在另外一个圆内的情况。 顺便,c++输出格式的控制,cout #include #include #include using namespace std; int main() { int numberOfCase; cin >> numberOfCase; for(int i = 0; i > ... 阅读全文
posted @ 2009-03-16 18:55 Lox 阅读(210) 评论(0) 推荐(0)
[原创]:Ubuntu QT配置入门
摘要:Ubuntu QT配置入门 QT是什么? QT是一个跨平台的C++ GUI库,其官方网站为http://www.qtsoftware.com。 QT的安装 安装方法有两种: 源码安装 下载qt-x11-opensource-src-4.3.2.tar.gz,解压到临时目录中。 ... 阅读全文
posted @ 2009-02-16 17:59 Lox 阅读(4057) 评论(0) 推荐(0)
C++资源之不完全导引
摘要:转自酷勤网 1,前言 无数次听到“我要开始学习C++!”的呐喊,无数次听到“C++太复杂了,我真的学不会”的无奈。Stan Lippman先生曾在《C++ Primer》一书中指出“C++是最为难学的高级程序设计语言之一”,人们常将“之一”去掉以表达自己对C++的敬畏。诚然,C++程序设计语言对于学 习者的确有很多难以逾越的鸿沟,体系结构的庞大,应接不暇并不断扩充的特性……除此之外,参考资料之... 阅读全文
posted @ 2009-02-04 13:17 Lox 阅读(166) 评论(0) 推荐(0)
杭电1042 N!
摘要:杭电1042 代码如下,总是超时,百思无解,暂且放下,来日方长 #include #include using namespace std; const int Length = 40000; int Multiple(int *Array, int ArrayLength, int m) { int c = 0; for(int i = 1; i = 1; i --) ... 阅读全文
posted @ 2008-12-31 17:31 Lox 阅读(761) 评论(0) 推荐(0)
杭电1004
摘要:这次是超时,怎么改进呢? 杭电ACM1004题 #include #include using namespace std; const int ballNumber = 1000; struct ball { string balloon; }; struct popular { string balloon; int number; }; int pLeng... 阅读全文
posted @ 2008-12-31 13:00 Lox 阅读(927) 评论(0) 推荐(0)
HDOJ1002:Wrong Answer
摘要:据说杭电acm的题目是比较简单的。可是为什么Pro 1002提交总是Wrong Answer呢?代码如下:百思不得其解。先留着,以后回来再看。 题目: http://acm.hdu.edu.cn/showproblem.php?pid=1002 #include using namespace std; const int length = 1000; void printArra... 阅读全文
posted @ 2008-12-31 10:26 Lox 阅读(469) 评论(0) 推荐(0)
Google C++ Style Guide
摘要:Google C++ Style Guide Benjy Weinberger Craig Silverstein Gregory Eitzmann Mark Mentovai Tashana Landray Each style point has a summary for which additional information is available by toggling ... 阅读全文
posted @ 2008-12-09 23:07 Lox 阅读(201) 评论(0) 推荐(0)
A Stack Class Example
摘要:1 /*《C++ Primer》3rd Edition, Section 4.15 2 * Question: 3 * 1)What the type of the constructor of class iStack? 4 * 2)In function iStack::full(),if we replace int(_stack.size() -1) with _s... 阅读全文
posted @ 2008-12-09 22:31 Lox 阅读(227) 评论(0) 推荐(0)
加强编程基本功
摘要:看来自己的编程基本功还差的很远,简单的插入排序和线性查找都调了很久才调处正确的结果,得加强这方面的训练。嗯,今天下午看到的一道题目,自己改了改。题目源自于谭浩强的《C++程序设计实践指导》的第一题。以后慢慢会改出更完善的程序。加油。 Code Code highlighting produced by Actipro CodeHighlighter (freeware) http... 阅读全文
posted @ 2008-12-08 21:45 Lox 阅读(254) 评论(0) 推荐(0)
 


博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3