自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(27)
  • 资源 (1)
  • 收藏
  • 关注

原创 sicily 1424 奖金..

现在这么水机试肿么办啊啊啊啊啊#include #include #include #include using namespace std;const int MAX = 10050;vector graph[MAX];int inDegree[MAX];queue zeroVertex;int money[MAX];// 最低工资的排在前面...void

2012-01-07 01:08:14 1012

原创 饿...Course中的某题...DAG

由于涉及了一个比较常用的算法,用拓扑排序判断一个有向图是否无环,因此mark下来#include #include #include #include using namespace std;const int MAX = 1000;bool graph[MAX][MAX];bool visited[MAX];int inDegree[MAX];bool ifRing

2012-01-04 10:34:32 411

原创 Mark 一个类...一个很简单的二叉查找树...

#ifndef BINARYSEARCHTREE_H_INCLUDED#define BINARYSEARCHTREE_H_INCLUDED /** * File BinarySearchTree.h * the Header file of binary search tree **/ #include #include using namespac

2012-01-02 16:46:28 385

转载 非递归遍历二叉树

1.先序遍历从递归说起void preOrder(TNode* root){    if (root != NULL)    {        Visit(root);        preOrder(root->left);        preOrder(root->right);    }}递归算法非常的简单。先访问跟节点,然后访问左节点,再访问右节点。如果不用递归,

2012-01-01 23:45:38 354

原创 sicily 1775. Simple Sort

最近弱爆了.....#include #include #include #include using namespace std;vector > priority; // idNum, priority;int entryNum;int colNum;int queryNum;struct entry{ int num; int number[15]

2011-12-05 12:00:35 1137

转载 安装python-mysql遇到的问题解决方法

纠结了一下,终于在网上找到方法帖个链接:http://www.ningoo.net/html/2010/install_python_mysqldb_on_ubuntu.html

2011-11-28 21:50:01 345

原创 sicily 1036

不认真看题后果很严重....暴力模拟...效率很低的说...// source code of submission 985877, Zhongshan University Online Judge System#include #include #include #include #include #include using namespace std;bool wo

2011-11-19 23:52:15 559

原创 sicily 1783. Large is Better

水题一道.....#include #include #include #include using namespace std;bool cmp(char str1, char str2){ return str1 > str2;}int main(){ int caseNum; int caseCount = 0; string number;

2011-11-08 00:07:35 692

原创 The Zen of Python, by Tim Peters

The Zen of Python, by Tim PetersBeautiful is better than ugly.Explicit is better than implicit.Simple is better than complex.Complex is better than complicated.Flat is better than nested

2011-11-07 15:46:12 504

原创 sicily 1323. Switch text

#include #include #include #include using namespace std;bool checkEmptyLine(string str){ for (int i = 0; i < str.size(); i++) { if (str[i] != ' ') return true; } return false;}int

2011-11-07 12:50:47 791

原创 codeblocks更改调试终端

原来很简单....在codeblocks菜单中选:Setting==>Environment...==>General Setting==>Terminal to lanuch console programs:用 “gnome-terminal -t $TITLE -x” 替换 “xterm -T $TITLE -e” 即可!!!(源自百度)

2011-11-06 19:09:41 881

转载 Sicily题目分类

这个学期一定要把数据结构和算法学好.....*************************程序设计题*************************sicily 1293, uva 100, pc 110101, 3n+1数链问题, 难度1sicily 1813 M进制数问题 sicily 1157 The hardest problem. 简单大小比较,难度0s

2011-11-01 23:50:32 4058

原创 sicily 1342 开心的金明

/*** *典型0-1背包问题....参照DD大牛写的背包9解... **/#include #include using namespace std;int moneyImportant[30000];int main(){ int totalMoney; int elementNum; int price; int importance; while (c

2011-11-01 23:46:48 2617

原创 无法解析的外部符号 _WinMain@16,该符号在函数 ___tmainCRTStartup 解决方法

一,问题描述MSVCRTD.lib(crtexew.obj) : error LNK2019: 无法解析的外部符号 _WinMain@16,该符号在函数 ___tmainCRTStartup 中被引用 Debug/jk.exe : fatal error LNK1120: 1 个无法解析的外部命令error LNK2001: unresolved external symbol _

2011-10-24 01:24:12 466

原创 qmake生成makefile编译时提示缺少lqtgui和lqtcore时候的方法

因为我只是用于普通的C/C++ project,所以这两个库并不需要用到,所以在项目文件.pro后面加上一下语句即可CONFIG += dll QT -= gui core LIBS  -= -lQtGui -lQtCore

2011-10-22 08:55:39 1833

原创 数据结构作业—表达式求值

嘛...就是转换成反波兰式嘛......#include #include #include #include #include #include using namespace std;string changeToReversePolish(string

2011-10-17 11:56:32 689

转载 JSON 入门指南(转自IBM developerWorks)

尽管有许多宣传关于 XML 如何拥有跨平台,跨语言的优势,然而,除非应用于 Web Services,否则,在普通的 Web 应用中,开发者经常为 XML 的解析伤透了脑筋,无论是服务器端生成或处理 XML,还是客户端用 JavaScript 解析 XML,都常常导致复杂的代码,

2011-09-25 22:27:43 418

原创 Makefile教程

http://wiki.ubuntu.org.cn/index.php?title=%E8%B7%9F%E6%88%91%E4%B8%80%E8%B5%B7%E5%86%99Makefile&variant=zh-cn

2011-09-19 16:11:24 359

转载 vim Project插件帮助译文

*project.txt*     一个用来管理多个项目及项目源代码的插件        支持版本: Vim 6.x 及 Vim7.x        最后更新: 2006 年 10 月 13 日 星期五        翻译更新: 2007 年 08 月 16 日 星期

2011-09-19 11:07:27 635

转载 vim插件安装目录

VIM 插件一般安装在 5 个地方, 存放插件的路径都列在“runtimepath”选项中, 我们可以使用 set 命令查看它::set runtimepath?显示结果如下:  runtimepath=~/.vim,/usr/local/share/vi

2011-09-19 09:39:27 1663

转载 Vim 实用技术,第 1 部分: 实用技巧 (转自IBM developerWorks)

0. Vim 简介作为开源世界最重要的编辑器之一(另一个是 Emacs),Vim 以其强大的功能和可定制能力被众多开发者所喜爱。不过,也许就是因为 Vim 的功能太强大了,要真正用好 Vim 并不容易。本文作者在多年的实际使用中逐渐掌握了一些实用技术,在此介绍给大家。——

2011-09-19 00:59:25 1403

原创 g++编译链接多个文件

头文件 mystack.h/** * File mystack.h * Declare class Stack **/#ifndef MYSTACK_H#define MYSTACK_H#include using namespace std;enum E

2011-09-18 16:37:24 1320

原创 数据结构作业—Calendar

感觉写得有点别扭....万年历...写得不好见谅哈calendar.cpp:/** * File calendar.cpp, 2011.09.15 * define class Calendar * Copyright by Zhou Junjie, 2011~

2011-09-17 14:09:03 641

转载 给程序员的VIM速查卡(转自CoolShell)

前几天酷壳发布过“vim简明攻略”,不知道大家练得怎么样了。如果你练了一下,那么这里这个速查卡就会对你有帮助了。以前本站也有过一个(vim速查卡),不过其太简单了。我觉得这个很不错,很全,很直观。这个速查卡来自这里。其用颜色标注了级别:  Green   = 存活级

2011-09-16 21:13:17 422

转载 C++实现split函数(来自网上)

vector split(string source, string sep){ vector result; int sepLen = sep.length(); int lastPosition = 0; int index = -1; while (

2011-09-15 15:40:30 379

转载 简明Vim练级攻略——转自CoolShell

vim的学习曲线相当的大(参看各种文本编辑器的学习曲线),所以,如果你一开始看到的是一大堆VIM的命令分类,你一定会对这个编辑器失去兴趣的。下面的文章翻译自《Learn Vim Progressively》,我觉得这是给新手最好的VIM的升级教程了,没有列举所有的命令,只是列

2011-09-07 11:25:31 2547 1

转载 Linux目录解释(蛮全)

/bin:bin是binary(二进制)的缩写。这个目录是对UNIX系统习惯的沿袭,存放着使用者最经常使用的命令。例如:cp,ls,cat。   /boot:这里存放的是启动LINUX时使用的一些核心文件。   /dev:dev是device(设备)的缩写。这个目录下

2011-09-06 20:57:17 370

A Byte of Vim

a Byte of Vim,Vim的一本入门教材

2011-09-24

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除