//iOS学习交流群:230644538
#include
#include
using namespace std;
#define OK 1
#define MAX 10//用户自定义三元组的最大长度
//定义三元组表
typedef struct
{
int i, j;//非零元素的行下标和列下标
int v; //非零元素的值
}TriTupleNode;
typedef s...
分类:
其他好文 时间:
2015-05-26 12:39:33
阅读次数:
138
这一系列博客的特点就是——给出每趟排序的结果
本来想着好好写一下过程,弄个图片什么的,不过觉得网上的解析太多了,都比较好,所以这些博客就算是对自己的总结吧。
#include
void SelectSort(int *m, int n)
{
int i,j,k,temp;
bool flag;
for(i=0;i<n-1;i++)
...
分类:
编程语言 时间:
2015-05-26 12:39:15
阅读次数:
119
#include "stdafx.h"#include "string"#include "iostream"#include "vector"#include "sstream"using namespace std;int _tmain(int argc, _TCHAR* argv[]){ .....
分类:
其他好文 时间:
2015-05-26 12:36:11
阅读次数:
109
//EK模板#include #include #include#include #define ll long longusing namespace std;#define arraysize 1005int maxData = 0x7fffffff;int capacity[arraysize...
分类:
其他好文 时间:
2015-05-26 12:35:11
阅读次数:
112
namespace ConsoleApplication3{ class DataObject { public int iValue; public string sValue; public decimal dValue; } c...
分类:
其他好文 时间:
2015-05-26 12:33:07
阅读次数:
161
(转)/*高精度乘法输入:两行,每行表示一个非负整数(不超过10000位)输出:两数的乘积。*/#include#include#include#include#define MAX 10001inthigh_precision(int*sum,int*a,int*b,inta_len,intb_l...
分类:
其他好文 时间:
2015-05-26 12:25:55
阅读次数:
137
1. 无参数无返回值的block代码void (^myblock)() = ^{NSLog(@"block");};//调用代码myblock();2. 有参数有返回值的block的代码int (^sumblock)(int , int) = ^(int a , int b){ return a.....
分类:
其他好文 时间:
2015-05-26 12:00:04
阅读次数:
132
opengl不带输出文字api,可以用glut来实现 void?myDisplay(void)
{
int?a?=?clock();
glClear(GL_COLOR_BUFFER_BIT);
char?*str?=?"FPS:60";
int?n?=?strlen(str);
glRasterPos3f(-1,?0.95,?0.0...
分类:
其他好文 时间:
2015-05-26 10:54:09
阅读次数:
199
#include
#include
void printMatrix(int **matrix,int columns,int rows,int start)
{
int x=columns-start-1;
int y=rows-start-1;
int i;
for(i=start;i<=x;i++)//先打印一行
printf("%d ",matrix[start][i]);
...
分类:
编程语言 时间:
2015-05-26 10:43:45
阅读次数:
494
1.DAO层接口的设计,定义一个PersonDAO接口,里面声明了两个方法:public interface PersonDAO{ public List queryByPage(String hql, int offset, int pageSize); public int ...
分类:
Web程序 时间:
2015-05-26 10:40:23
阅读次数:
131