1:自定义数据段 #pragma DATA_SECTION(symbol,".section") Int32 symbol[LENGTH]; 2:前几天遇到一个问题。dsp在执行某一块算法执行的时间太长达到100多ms。这个时间后面通过设置ccs的一些优化选项。减少到42ms。这还是不能达到我们的需...
分类:
其他好文 时间:
2014-07-16 23:03:30
阅读次数:
240
服务端-监听接收#include "winsock2.h"#pragma comment(lib,"WS2_32.LIB")int bufi;class mserver{private: SOCKET ssock,csock; sockaddr_in saddr,cadd...
分类:
编程语言 时间:
2014-07-16 20:45:32
阅读次数:
122
#pragma once#include "student.h"#include "Teacher.h"typedef enum _EPersonType{ ePersonUndefin = 0, ePersonStudent, ePersonTeacher}EPersonType...
分类:
其他好文 时间:
2014-07-13 00:36:51
阅读次数:
216
get 请求
#pragma mark - GET登录
- (void)getLogon
{
// 1. URL
NSString *urlStr = [NSString stringWithFormat:@"http://localhost/login.php?username=%@&password=%@", self.userName.text, self.userPw...
分类:
移动开发 时间:
2014-07-12 22:44:33
阅读次数:
267
#pragma once
#include
#include
#include
#include
#include
class CountDownLatch : boost::noncopyable
{
public:
explicit CountDownLatch(int count);
void wait();
void countDown();
int getCo...
1、 文件的上传完整用例代码:#pragma mark 文件上传- (void)upload { NSURL *url = [NSURL URLWithString:@"http://192.168.1.106:8080/MJServer/upload"]; NSMutableURLRequest....
分类:
其他好文 时间:
2014-07-12 09:15:16
阅读次数:
193
相关代码展示:#pragma mark - PSCollectionViewDelegate and DataSource methods- (NSInteger)numberOfRowsInCollectionView:(PSCollectionView *)collectionView{ re....
分类:
其他好文 时间:
2014-07-11 21:26:23
阅读次数:
316
1.如果你是使用的第三方库,你看一下mainplay这个函数是在那个头文件(比如xx.h)里声明的,然后找到其对应的实现库,将其拷贝到你的Debug目录下,再在你的源文件里添加#pragma comment(lib,"xx.lib")2.如果你是自己实现的mainplay,那么请确保你声明了该函数后...
分类:
其他好文 时间:
2014-07-09 14:21:33
阅读次数:
133
枚举两个数字进行运算,将运算结果加入数组末尾后继续枚举
当数组中有7个数字之后表示运算完成
//#pragma comment(linker, "/STACK:102400000,102400000")
//HEAD
#include
#include
#include
#include
#include
#include
#include
#include
#inc...
分类:
其他好文 时间:
2014-07-09 12:29:00
阅读次数:
168
点集配对问题 空间里n个点,使它们配成n/2对点,使得每个点恰好在一个点对中。
要求所有点队中,两点距离之和尽量下 n
d(s) = min(d{S - {i} - {j}+ |Pi Pj| | j属于S, j > i, i = min{S}}
//#pragma comment(linker, "/STACK:102400000,102400000")
//HEAD...
分类:
其他好文 时间:
2014-07-09 10:19:06
阅读次数:
244