码迷,mamicode.com
首页 >  
搜索关键字:direct path write temp    ( 55479个结果
C语言随笔记(二)厉害的宏
比最牛逼的FOPEN宏更牛逼的USING_FILE宏#defineUSING_FILE(file,path,type,code)\{\FILE*##file;\if(NULL==(##file=fopen(path,type)))\{\fputs("内存不足程序退出中",stderr);\exit(...
分类:编程语言   时间:2014-06-09 22:01:39    阅读次数:368
一些问题
一个完整的文件,通过read()读取,还没有读完就write()到内存卡里面,内存卡里面是否有文件生成?文件名是怎么样的?①imageUrls = getIntent().getStringArrayExtra(Extra.IMAGES);②Bundle bundle = getIntent().g...
分类:其他好文   时间:2014-06-09 21:22:20    阅读次数:220
Leetcode::Longest Common Prefix && Search for a Range
一次总结两道题,两道题目都比较基础Description:Write a function to find the longest common prefix string amongst an array of strings.分析: 这道题目最重要的知道什么叫prefix前缀, 否则一不小心就做...
分类:其他好文   时间:2014-06-09 21:08:16    阅读次数:224
C 实现冒泡排序
#include #define SIZE 8void bubble_sort(int a[], int n);void bubble_sort(int a[], int n) { int i, j, temp; for (j = 0; j a[i + 1]) { ...
分类:其他好文   时间:2014-06-09 20:45:16    阅读次数:255
LeetCode:Generate Parentheses
题目链接Givennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a solution set is:"((...
分类:其他好文   时间:2014-06-09 15:11:33    阅读次数:212
Mac配置SVN
1) 解压压缩包,解压到/usr/local目录下 如:/usr/local/apache-maven-3.2.12) 配置环境变量 在~/.bash_profile添加如下两行代码export M2_HOME=/usr/local/apache-maven-3.2.1export PATH=${....
分类:其他好文   时间:2014-06-09 13:17:19    阅读次数:232
设置ubuntu默认中文字符
一. Ubuntu默认的中文字符编码Ubuntu默认的中文字符编码为zh_CN.UTF-8,这个可以在/etc/environment中看到:sudo gedit /etc/environment可以看到如下内容:PATH="/usr/local/sbin:/usr/local/bin:/usr/s...
分类:其他好文   时间:2014-06-08 21:43:04    阅读次数:339
[iOS]The app icon set named "AppIcon" did not have any applicable content.
Develop Tools: xCode 5.1I write a demo for app settings feature. The tutorial url is here.When I add a icon into app icon and build the code, I got th...
分类:移动开发   时间:2014-06-08 20:39:03    阅读次数:1920
linux内核系统调用--sendfile函数
在apache,nginx,lighttpd等web服务器当中,都有一项sendfile相关的配置,在一些网上的资料都有谈到sendfile会提升文件传输性能,那sendfile到底是什么呢?它的原理又是如何呢?在传统的文件传输里面(read/write方式),在实现上其实是比较复杂的,需要经过.....
分类:系统相关   时间:2014-06-08 20:28:40    阅读次数:288
fileUpload上传文件,并设置文件名以及保存服务器位置
我做的是上传Excel文件,保存内容到数据库。下面部分代码是fileUpload上传文件,并设置文件名以及保存服务器位置。if (fileUpload.HasFile) { string fileNameNo = Path.GetF...
分类:其他好文   时间:2014-06-08 20:14:01    阅读次数:282
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!