- 博客(25)
- 资源 (1)
- 收藏
- 关注
原创 VI的一些操作
跳转到函数、变量定义处: [+ctrl+i 跳转到函数、变量和#define [+ctrl+d 跳转到#define处 ctrl+i 向前跳到前几次光标位置 ctrl+o 向后跳到后几次光标位置 函数体跳转: [[ ]] [] ][ {} 2009-07-07 17:31 补充 如何选中括号中的内容 进行: 将光标移至括号内,按shift+v进入行选模式,然后 i{ -
2012-07-05 13:41:15
829
转载 QTablewidget用法汇总
QTableWidget *table = new QTableWIdget(this); table->setColumnCount(5); //设置列数 table->setRowCount(3); //设置行数/ /*设置列名*/ QStringList headers; headers table->setHorizontalHeaderLabels(hea
2011-11-16 17:11:52
5595
原创 回溯算法写的组合
#include #include using namespace std; int combine(int a[], int n, int m) { int* order = new int[m+1]; for(int i=0; i<=m; i++) order[i] = i-1; // 注意这里order[0]=-1用来作为循环判断
2011-11-16 15:50:39
695
原创 C语言小函数-栈
#include #include #include typedef struct { void *elems; int elemsize; int loglength; int alloclength; } stack; void StackNew(stack *s, int elemSize) {
2011-11-10 08:08:52
410
原创 C语言小函数
#include #include #include typedef struct { void *elems; int elemsize; int loglength; int alloclength; } stack; void StackNew(stack *s, int elemSize) { assert(elemSize>0);
2011-11-09 08:19:22
401
原创 C语言小函数
#include #include #include typedef struct Intstack { int *elems; int loglength; int alloclength; } Intstack; void IntstackNew(Intstack *s) { s->loglength=0; s->alloclength=4;
2011-11-08 08:24:23
526
原创 c语言小函数1
void swap(void *p1, void *p2, int size) { char *p=malloc(size); memcpy(p, p1, size); memcpy(p1, p2, size); memcpy(p2,p,size); free(p); } int lsearch(int key, int array[], int size
2011-11-06 08:41:29
439
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅
1