摘要: #import #import #import "Student.h"@interface DataBaseHandler : NSObject{ // 添加一个成员变量 作用:指向本地的数据库文件,方便我们进行读写操作 sqlite3 *dbPoint;}// 把这个数据库处理类 写... 阅读全文
posted @ 2014-08-26 16:32 LordCarrot 阅读(438) 评论(0) 推荐(0)
摘要: // 指针变量是存放地址(内存编号)的变量。// 指针变量定义:// int *p = NULL;// int * --变量类型 整形指针// p变量名// NULL初始值,NULL恒等于0// 与普通变量不同的是,定义指针变量的时候,前⾯面需要加 *。*是间接寻址符;// int ... 阅读全文
posted @ 2014-07-17 20:35 LordCarrot 阅读(133) 评论(0) 推荐(0)
摘要: #include "stdafx.h"int _tmain(int argc, _TCHAR* argv[]){ int a = 1, b = 1, c = 0; int max = 0x7FFFFFFF; printf("%d\n", max);// 打印一下整型的最大值 ... 阅读全文
posted @ 2014-07-16 23:17 LordCarrot 阅读(278) 评论(0) 推荐(0)
摘要: 1.定义一个和要排序数组a[10]长度一样的数组, 这里定义为10,index[10] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9},值为10个下标。2. 用冒泡排序,索引值代替小下标即可#include "stdafx.h"int _tmain(int argc, _TCHAR... 阅读全文
posted @ 2014-07-15 23:11 LordCarrot 阅读(1143) 评论(0) 推荐(0)