摘要: 1 // 320.cpp : Defines the entry point for the console application. 2 // 3 4 #include "stdafx.h" 5 #include <iostream> 6 #include <string> 7 #include <fstream> 8 using namespace std; 9 istream& get(istream& in);10 11 ifstream& open_file(ifstream& ifile,str 阅读全文
posted @ 2013-03-20 23:07 何合 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-01-17 15:20 何合 阅读(130) 评论(0) 推荐(0) 编辑
摘要: int tmpFlag = _CrtSetDbgFlag( _CRTDBG_REPORT_FLAG ); tmpFlag |= _CRTDBG_LEAK_CHECK_DF; _CrtSetDbgFlag( tmpFlag );将以上三句放在函数入口处,在程序结束后会显示内存泄露情况,缺点是无法显示具体的文件名和行号,在debug模式下 阅读全文
posted @ 2012-11-30 16:07 何合 阅读(176) 评论(0) 推荐(0) 编辑
摘要: .如果用VC开发程序,常见这么几个错误,C2001,c2005,c2011,这些错误的原因是什么。Answer: 在学习VC++的过程中,遇到的LNK2001错误的错误消息主要为: unresolved external symbol “symbol”(不确定的外部“符号”)。如果连接程序不能在所有的库和目标文件内找到所引用的函数、变量或标签,将产生此错误消息。一般来说,发生错误的原因有两个:一是所引用的函数、变量不存在、拼写不正确或者使用错误;其次可能使用了不同版本的连接库。编程中经常能遇到LNK2005错误——重复定义错误,其实LNK2005错误并不是一个很难解决的错误. 阅读全文
posted @ 2012-09-26 14:41 何合 阅读(166) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include<stdlib.h> #include <memory.h> #include <math.h> #include <time.h> #define ABS(a) ((a)>0?(a):(-(a))) int getArrayMin(double arr[12][10]); double getScore(int pitchs,int ditance); int getFrameNum(FILE *filep,int frameLength); char *PCM_to_pi 阅读全文
posted @ 2012-09-19 10:22 何合 阅读(216) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <string.h> #include <stdlib.h> #include <memory.h> #include <math.h> #include <fftw3.h> #include <sys/time.h> #define ABS(a) ((a)>0?(a):(-(a))) //function declare int getScale(double pitch); int getPeaks(double array[],int len) 阅读全文
posted @ 2012-09-19 10:20 何合 阅读(1108) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2012-09-15 16:42 何合 阅读(1) 评论(0) 推荐(0) 编辑
摘要: /**************************************************************************************************** 数组和指针参数是如何被编译器修改的. "数组名被改写成一个指针参数"规则并不是递归定义的.数组的数组会被改写为"数组的指针",而不是"指针的指针"*********************************************************************************************** 阅读全文
posted @ 2012-08-21 10:40 何合 阅读(628) 评论(0) 推荐(0) 编辑
摘要: 1: cd ~/.mozilla //进入火狐目录(~代表当前用戶主目录,.代表隐藏目录)2: install_flash_player_10_linux.tar.gz至本地3:tar-zxvf install_flash_player_10_linux.tar.gz //解压缩得到libflashplayer.so(如果解压后还是压缩包,继续解压)4:mkdirplugins //在~/.mozilla下建立plugins目录5:cp libflashplayer.so plugins //将libflashplayer.so复制到plugins目录下6:重启火狐 阅读全文
posted @ 2012-08-20 08:35 何合 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 安装wine在终端输入以下命令:sudo apt-get install wine用wine安装Source Insight在终端中进入到soucreinsight文件下wine /InsightSetup.exe运行后即可安装使用:Wine->Programs->Source Insight3->Source Insight 阅读全文
posted @ 2012-08-06 08:35 何合 阅读(206) 评论(0) 推荐(0) 编辑