码迷,mamicode.com
首页 > 其他好文
socket
连接TCP/IP协议规定网络数据传输应采用大端字节序#include typedef uint32_t in_addr_t;struct in_addr {in_addr_t s_addr;};struct sockaddr_in {sa_family_t sin_family; //shortin...
分类:其他好文   时间:2015-11-21 18:24:42    阅读次数:158
函数式宏定义用do...while(0)的好处
函数式宏定义经常写成这样:#define device_init_wakeup(dev, val) \ do { \ device_can_wakeup(dev) = !!(val); \ device_set_wak...
分类:其他好文   时间:2015-11-21 18:23:42    阅读次数:155
语音信号实时采集与处理
基于MATLAB的语音信号采集和分析系统的可视化设计论文摘要:设计和开发了一种基于MATLAB的语音采集与分析的可视化系统,该系统通过Realtek Ac97型声卡和MATLAB的数据采集工具箱低成本地实现了语音信号的实时采集,并利用 MATLAB 强大的数值计算和信号处理功能高精度地完成了语音信号...
分类:其他好文   时间:2015-11-21 18:25:28    阅读次数:121
opengl基础学习专题 (三) 多边形绘制的几种样式
主要通过例子讲解如何使用样式控制点线,和多边形,绘制出简单图形.
分类:其他好文   时间:2015-11-21 18:25:38    阅读次数:134
进击的UI-----------------UIActivityIndicatorView(活动指示器)
// UIActivityIndicatorView的常用方法 活动指示器,就是旋转进度轮UIActivityIndicatorView *oneIndicatorView = [[UIActivityIndicatorView alloc] init];oneIndicatorView.activ...
分类:其他好文   时间:2015-11-21 18:24:06    阅读次数:138
储存出题改进
form1的代码using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using Syste...
分类:其他好文   时间:2015-11-21 18:23:13    阅读次数:150
进击的UI---------------- UITextField&UIButton
1.UITextField1??:初始给值UITextField *textfield1= [[UITextField alloc]initWithFrame:CGRectMake(100, 100, 150, 40)];textfield1.backgroundColor = [UIColor c...
分类:其他好文   时间:2015-11-21 18:22:24    阅读次数:164
进击的UI-------------UIAlertView(警告)
// UIAlertView的常用方法// 标准样式UIAlertView *oneAlertView = [[UIAlertView alloc] initWithTitle:@"标题" message:@"提示内容" delegate:self cancelButtonTitle:@"关闭" o...
分类:其他好文   时间:2015-11-21 18:21:48    阅读次数:168
进击的UI---------------------UIEvent&UITouch&UIResponder
1.UIEvent(事件)1??:事件分为三种:1 触摸事件 2 晃动事件 3 远程控制2??:触摸事件//1. UIControlEventTouchUpInside 点击进去(点后松手)//2. UIControlEventTouchDown 单击(点就出)//3. UIContro...
分类:其他好文   时间:2015-11-21 18:20:37    阅读次数:161
仿网易新闻界面
#import "AppDelegate.h"#import "ViewController.h"@interfaceAppDelegate ()@end@implementation AppDelegate- (BOOL)application:(UIApplication *)applicati...
分类:其他好文   时间:2015-11-21 18:22:59    阅读次数:265
进击的UI--------------UIAVPlayer(视频)
#import "RootViewController.h"#import // 引入@interface RootViewController ()@property (nonatomic,strong)AVPlayer *player;@property (nonatomic,strong)AV...
分类:其他好文   时间:2015-11-21 18:20:10    阅读次数:185
int (*(*fp)(void *))[10]; 指向函数的指针类型
int (*(*fp)(void *))[10]; //这个类型用typedef分解出来// 第一步:此指针是一个指向函数T1的指针typedef int (*T1(void *))[10];T1 *fp;// 第二步:T1 是一个函数,返回值是T2,参数为(void *)typedef int (...
分类:其他好文   时间:2015-11-21 18:20:23    阅读次数:319
Bootstrap响应式布局(1)
Bootstrap历练作品 这是我的第一个Bootstrap页面 从今天开始起帆Bootstrap之旅,好好学习,努力学习,加油! 调整浏览器窗口的大小,可以看到响应式的效果。 ...
分类:其他好文   时间:2015-11-21 18:21:38    阅读次数:130
进击的UI---------------target/action设计模式&Delegate&手势识别
1.target/action设计模式:AppDelegate.mRootViewController.mClickView.hClickView.mColorView.hColorView.mRootView.hRootView.mButtonView.hButtonView.m2.delegat...
分类:其他好文   时间:2015-11-21 18:19:37    阅读次数:168
内存的五大分区
结构体数组. 结构体指针->//内存的五大分区: 栈区,堆区,静态去,常量区,代码区//代码区:代码在编译后形成的二进制都放在代码区;//常量区:放在常量区的常量是只读不可写的 // const int a = 5;//加了const关键字后就放在了常量区 // a = 6;//常量区的常量不能再....
分类:其他好文   时间:2015-11-21 18:18:27    阅读次数:145
进击的UI---------------------UITextView(文本框)
// UITextView的常用方法 主要用来输入和显示多行文本信息UITextView *oneTextView = [[UITextView alloc] init];oneTextView.frame = CGRectMake(0, 20, 320, 200); // 设置位置oneTextV...
分类:其他好文   时间:2015-11-21 18:18:55    阅读次数:145
acess() 判断目录是否存在
acess()功能描述: 检查调用进程是否可以对指定的文件执行某种操作。 #include int access(const char *pathname, int mode);参数说明:pathname: 需要测试的文件路径名。 mode: 需要测试的操作模式,可能值是一个或多个. R_OK(.....
分类:其他好文   时间:2015-11-21 18:17:23    阅读次数:136
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!