接着上次的讲,这次我们讲 网络请求的封装
打开创建的项目,让我们一起来继续完成他,首先我们来创建一个NSobject
的文件圈住出来的轻一点要注意。千万不要搞错了创建好之后,开始编写代码,我们第一不要要先把工程文件引用进来看图让后我们定义一下接口 和
一个block//block定义typedef ...
分类:
移动开发 时间:
2014-05-20 11:01:13
阅读次数:
397
//#define LOCAL#include#include#include#includeint
const MAX_N=101;typedef struct Point{ int x,y; bool operatorVec[i].y) { ...
分类:
其他好文 时间:
2014-05-19 17:08:45
阅读次数:
253
我们在编写程序的过程中,有很多要用到出始化,但有很多都写进了注册表,而我们在想修改或者查看的时候必须到注册表里去修改,而不是直接到一个程序目录下的ini文件里查看或者修改,怎么使可以直接生成的ini文件能写进Debug
呢?而不写进注册表. 1 //初始化ini文件参数2 typedef stru....
分类:
其他好文 时间:
2014-05-19 10:42:46
阅读次数:
295
前言 本文将介绍 OpenCV 中的矩阵结构 CvMat
并提供一些很实用的技巧。CvMat的类型定义 1 typedef struct CvMat 2 { 3 int type; // 数据类型 4 int
step; // 行长度 5 int* refcou...
分类:
其他好文 时间:
2014-05-18 18:54:07
阅读次数:
1771
个人觉得ST的库函数用起来还是挺不错的,之前都是使用自己写的函数,容易改出错,以下是验证过的,TIM1定时100微妙中断一次。
void TIM1_TimeBaseInit(u16 TIM1_Prescaler,
TIM1_CounterMode_TypeDef TIM1_CounterMode,...
分类:
其他好文 时间:
2014-05-18 13:27:43
阅读次数:
306
1001
1002
1003
这题错了半天 伤不起 转成字符串搞字典树就错 最后直接位运算&建树就对了
AC代码
#include
#include
typedef __int64 LL;
const int maxn = 100010;
const int maxnode = 60000000;
const int sigma_size = 2;
LL a[maxn];
char...
分类:
其他好文 时间:
2014-05-18 04:47:04
阅读次数:
310
前几天被OpenCV的直方图的数据结构CvHistogram弄得很纠结。上网一搜,也没什么相关的资料。现在有点头绪了,就写点东西,让后面的人好走一些吧。先来看看CvHistogram的定义:typedef
struct CvHistogram{ int type; CvArr* bins; floa...
分类:
其他好文 时间:
2014-05-17 22:55:27
阅读次数:
644
关联容器,完全没用过,一直想用,FUC,本文只介绍初级使用方式,不能贪多#include#include#include#includeusing
namespace std;typedef pair Auth;int main(){ map m; set s; Auth p1,p2,p3,p4; ...
分类:
编程语言 时间:
2014-05-17 22:46:09
阅读次数:
358
先序遍历和中序遍历非递归代码:#include #include using
namespace std;typedef struct BinaryTree { int data; struct BinaryTree *rchild,
*lchild;}BinaryTree;int cr...
分类:
其他好文 时间:
2014-05-17 21:56:50
阅读次数:
264
#include //#include #include #define PORT 5150
#define DATA_BUFSIZE 8192 typedef struct { OVERLAPPED Ov...
分类:
其他好文 时间:
2014-05-17 18:37:33
阅读次数:
297