自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

转载 GLib Event Loop

转自出处GLib Event LoopThe GLib event loop manages all the sources of an event available for GLib. These events can come from different kinds of sources like file descriptors (plain

2012-06-10 23:30:27 1593

原创 求数组数对之差的最大值

// 数对之差的最小值.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include "string.h"#define max(a, b) (a > b? a : b)#define min(a, b) (a < b? a : b)int findMaxDiff(

2012-06-05 09:54:18 635

原创 八皇后问题

// 8皇后问题_回溯算法.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include using namespace std; /* * S[i]表示第i个皇后* S[i] = j 表示第 i 个皇后所在的列为 j* 能否用递归算法?*/

2012-06-05 00:23:37 420

原创 求字符串的所有子集

// 字符串的组合输出.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include "string.h"#include #include #include using namespace std; /** 输出 * 1* 12* 123* 1234

2012-06-05 00:13:41 1407

原创 最长单调递减序列

// 最长单调递减子序列.cpp : Defines the entry point for the console application.//#include "stdafx.h"int error = 0;/* * 函数功能 : 打印最长递减子序列 * 函数参数 : pArray指向源数组,pB指向辅助数组,k表示最长子序列的末尾元素(值最大的元素下标) *

2012-06-04 23:57:35 824

原创 找零问题_动态规划

// 找零问题_动态规划.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include #include using namespace std ; void MinCoin(int NumOfValue , int Money , int *CoinValue

2012-06-04 23:38:50 1415

原创 字符串全排列

// 字符串的全排列.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include "string.h"/** 解题思路:* 假设字符串 abcd* 思路就是 把每个字符都交换一下* * 最外层循环* 1) abcd, 2) ba

2012-06-04 23:03:41 431

转载 初学JAVA需要搞懂的几个问题

转自出处对于这个系列里的问题,每个学Java的人都应该搞懂。当然,如果只是学Java玩玩就无所谓了。如果你认为自己已经超越初学者了,却不很懂这些问题,请将你自己重归初学者行列。内容均来自于CSDN的经典老贴。 问题一: 我声明了什么! String s = "Hello world!"; 许多人都做过这样的事情,但是,我们到底声明了什么?回答通常是:一个

2012-06-02 20:51:58 453

转载 Java入门实例classpath及package详解

转自出处Java很诱人,但对于刚跨入Java门槛的初学者来说,编译并运行一个无比简单的Java程序简直就是一个恶梦。明明程序没错,但各种各样让人摸不着头 脑的错误信息真的让你百思不得其解,许多在Java门口徘徊了很久的初学者就这样放弃了学习Java的机会,很是可惜。笔者也经历过这个无比痛苦的阶段, 感觉到编译难的问题就出在classpath的设置及对package的理解之上。本文以实例

2012-06-02 20:34:15 513

空空如也

空空如也

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

TA关注的人

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