read and write file is a very common operation regarding file mainuplation.However, the powerfull getline only can read line by line(with new line cha...
分类:
其他好文 时间:
2014-10-24 12:54:51
阅读次数:
161
private void Bind() { string strLogPath = ConfigurationSettings.AppSettings["LOG_PATH"].ToString(); if (strLogPath.Length...
分类:
其他好文 时间:
2014-10-24 12:49:08
阅读次数:
149
我的思路:先读取每一个单词,存放到容器中;读取完毕后,将容器中的单词倒序写入输出中。#include#include#includeusing namespace std;void f(string &s){ vector vs; string temp=""; int i=0;...
分类:
编程语言 时间:
2014-10-24 12:19:25
阅读次数:
165
1 NSArray *paths=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *path=[paths objectAtIndex:0]; NSSt...
分类:
移动开发 时间:
2014-10-24 12:17:50
阅读次数:
141
============问题描述============ 如题,byte数组转换成wav音频文件,并且播放,下面代码能生成data/data/com.example.playwav/cache/temp.wav但是在播放的时候报异常。我把代码和Log贴在下面了。我分析,原因应该是wav文件格式的编解...
分类:
移动开发 时间:
2014-10-24 10:38:44
阅读次数:
265
Namestat, fstat, lstat - get file statusSynopsis#include #include #include int stat(const char *path, struct stat *buf);int fstat(intfd, struct stat *...
分类:
其他好文 时间:
2014-10-24 09:15:25
阅读次数:
272
我复审的代码是邓亚梅12061152的,以下为复审意见:首先是优点:1.分类明确,将文件的获取,单词获取,单词统计的功能分成不同的模块,思路清晰。2.类中属性私有,只有通过公共方法才能进行访问和操作,具有良好的封装性。3.代码简洁明了,有不错的代码风格。可以改进的地方:1.统计信息可以用direct...
分类:
其他好文 时间:
2014-10-24 01:40:22
阅读次数:
165
BufferedInputStream 自带 8M 缓冲区,我们自己又定义 byte[] buf = new byte[1024*1024];那 bis.read(buf) 就会去, 8M 缓冲区取数据, 读到自己的 1M 缓冲区, 直到碰到 bos.write(buf,0,len) 把1M缓冲区的...
分类:
其他好文 时间:
2014-10-24 01:33:42
阅读次数:
212
给结对伙伴叶露婷的代码复审:1.变量命名存在些许问题,尽量不要使用拼音,如果需要按照中文意思命名可以采用英语。1 public void dictionarystore()2 {3 String temp;4 count jishu;5 6 foreach (Object o in str)7 {8...
分类:
其他好文 时间:
2014-10-24 00:21:24
阅读次数:
263
因为要在命令行下运行一些android的工具,所以配置一些环境变量会比较方便:遇到问题:java -jar re-sign.jar 出现提示android路径没有配置好:需要配置如下:配置ANDROID_HOME为android sdk的安卓目录,例如:D:\android-sdk在path下添加这...
分类:
微信 时间:
2014-10-24 00:07:21
阅读次数:
382