![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Foundation
文章平均质量分 53
顾晓伟
这个作者很懒,什么都没留下…
展开
-
棋盘覆盖问题
#include using namespace std; const int MAX_SIZE = 1024; int count = 0; int ChessTable[MAX_SIZE][MAX_SIZE]={0}; int cout_L[4] =原创 2011-08-13 19:35:38 · 299 阅读 · 0 评论 -
合并排序
#include #include using namespace std; const int MAX_SIZE = 1024; int count = 0; int ChessTable[MAX_SIZE][MAX_SIZE]={0}; int c原创 2011-08-13 19:36:22 · 281 阅读 · 0 评论 -
全排序
template void Perm(T list[],int k,int m) { if(k==m) { for(int i = 0;i原创 2011-08-13 19:33:56 · 313 阅读 · 0 评论 -
基础...二分搜索
template int binarySearch(const T list[],const T &x,int n) { int left = 0,right = n-1; int middle; while(left<right) {原创 2011-08-13 19:35:02 · 334 阅读 · 0 评论 -
最接近点对问题
#include using namespace std; #define INF 1e10 #define MAX_NUM 100 template inline T min(T a,T b,T c) { T tmp; return (tmp原创 2011-08-13 19:36:56 · 576 阅读 · 0 评论 -
一个面试题,很基础,却有很多东西可以挖掘+char*+char[]+与char*[]++char(*[])
先给出题目,问输出多少: #include using namespace std; int main() { char* str[]={"Welcome","to",Fortemedia", "Nanjing"}; char **p=str+1原创 2011-10-13 13:13:37 · 1099 阅读 · 1 评论