
C++
文章平均质量分 74
wandouprincess
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
C++ 解决8皇后问题
自己编写的程序。以供以后参考。 #include #include #include #include #include using namespace std; #define QUEEN 8 int a[QUEEN][QUEEN]; int sum=0; void initial(int a[QUEEN][QUEEN]) { for(int i=0;i原创 2011-11-17 01:59:56 · 519 阅读 · 0 评论 -
C++ 新建文件夹
今天用到C++建文件夹。记录下来。以便以后用到。 #include #include #include char* newfile="D://coms661//project//new"; mkdir(newfile); 要用到direct.h这个头文件 这里面mkdir一定要用char*的类型。或者选择string里面。c_str()函数把tring转化过来。原创 2011-11-17 00:21:25 · 4886 阅读 · 0 评论 -
C++ opencv 挑选文件夹下特定文件并存储
我这个程序主要用途如下: 我的文件夹下有很多图片, 他们的文件名是 "number.jpg", 数字并不是按照特定顺序。我现在从一个文件读取一个数字,这里是变量number, 然后把大于这个number的文件,挑选出来存储到我新建的文件夹下。程序如下:红色的是注释 //opencv header #include #include #include #include #inc原创 2011-11-17 04:34:00 · 907 阅读 · 0 评论 -
8数码,8PUZZLE 问题 C++ 代码
用到A* 算法。还有h方程。定义如代码里面。 我的代码如下: 8puzzle.h: #include #include #include #include #include #include #include #include #include using namespace std; void begin(); int** input(); in原创 2011-11-17 23:49:19 · 2389 阅读 · 0 评论 -
leetcode: Palindrome Partitioning II解法
题目如下: Given a string s, partition s such thatevery substring of the partition is a palindrome. Return the minimum cuts needed for apalindrome partitioning of s. For example, given s = "aab", Ret原创 2013-04-12 03:56:31 · 855 阅读 · 0 评论