作者 : 卿笃军函数原型size_tfread
(void*buffer,size_tsize,size_tcount,FILE*stream) ;参
数buffer用于接收数据的内存地址size要读写的字节数,单位是字节count要进行读写多少个size字节的数据项,每个元素是size字节.str...
分类:
其他好文 时间:
2014-05-09 05:09:11
阅读次数:
463
void AudioGrabber::saveWave(const QString
&fileName, const QByteArray &raw, const QAudioFormat &format){
typedef struct{ char riff_fileid[4];//"RIFF" ...
分类:
其他好文 时间:
2014-05-09 05:01:23
阅读次数:
434
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
[self.tableView
deselectRowAtIndexPath:[self.tableView
indexPathForSelectedRow] animated:YES];
}...
分类:
其他好文 时间:
2014-05-08 17:23:54
阅读次数:
261
fork.c 代码分析笔记
verifiy_area
long last_pid=0; //全局变量,用来记录目前最大的pid数值
void verify_area(void * addr,int size) // addr 是虚拟地址 ,size是需要写入的字节大小
{
unsigned long start;
start = (unsigned lo...
分类:
系统相关 时间:
2014-05-08 17:15:39
阅读次数:
485
sharepoint学习笔记汇总
http://blog.csdn.net/qq873113580/article/details/20390149
protected void Button1_Click(object sender, EventArgs e)
{
using (SPSite site = new SPSite("http:...
分类:
其他好文 时间:
2014-05-08 17:13:44
阅读次数:
254
题目链接:点击打开链接
题意:
给定一个字符串str 求字符串str的
循环节个数为 1-len 个的
最长子串长度
思路:套用kmp的性质
#include
#include
#include
using namespace std;
#define n 1300
void getnext(char str[n],int next[n]){
int m=strlen(str);...
分类:
其他好文 时间:
2014-05-08 17:12:53
阅读次数:
330
-(BOOL)tableView:(UITableView*)tableViewcanEditRowAtIndexPath:(NSIndexPath*)indexPath{returnYES;}-(void)tableView:(UITableView*)tableViewcommitEditingStyle:(UITableViewCellEditingStyle)editingStyleforRowAtIndexPath:(NSIndexPath*)indexPath{if(editingStyle==U..
分类:
其他好文 时间:
2014-05-08 16:33:27
阅读次数:
205
private void treeView1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
{
if(e.Button==MouseButtons.Right)
{
TreeNode tn=treeView1.GetNodeAt(e.X,e.Y);
if(tn!=null)treeView1.SelectedNode...
分类:
其他好文 时间:
2014-05-08 16:24:44
阅读次数:
308
-(void)createImages
{
// Load the alpha image, which is just the same Ship.png image used in the clipping demo
NSString *imagePath = [[NSBundle mainBundle] pathForResource:@"Ship.png" ofType:n...
分类:
移动开发 时间:
2014-05-08 16:17:52
阅读次数:
401
闲来没事,看了看sqlite的源码,突然想用c实现c++,写了如下demo
#include
#include
struct Class;
typedef struct Class _Class;
struct IMethod
{
void (*ctor)(_Class *c);
void (*dtor)(_Class *c);
int (*sum)(_Class* c);
in...
分类:
编程语言 时间:
2014-05-08 16:14:30
阅读次数:
363