
计算机
wxb_blog
语音识别算法工程师
展开
-
supermap object 中打开工作区间代码
private void ToolStripOpenWS_Click(object sender, EventArgs e) //打开工作区间 { bool blnOpen = false; string strOpenPath = string.Empty; //路径初始化为空 th翻译 2013-10-01 00:34:41 · 1173 阅读 · 0 评论 -
MFC中设置对话框颜色、添加背景图片、添加音乐的方法
一、设置背景颜色的三种方法:1、我们知道程序在运行的时候会调用OnPait函数,那么我们可以在这里设置背景颜色。 void CFlipCardsDlg::OnPaint(){if (IsIconic()){//保持不变 }else{CRect rc;GetClientRect( &rc );// 获取客户区转载 2013-12-04 00:02:50 · 996 阅读 · 0 评论 -
MFC设置窗口背景颜色(很全很强大)
如何修改frame窗口的背景颜色? MDI窗口的客户区是由frame窗口拥有的另一个窗口覆盖的。为了改变frame窗口背景的颜色,只需要这个客户区的背景颜色就可以了。你必须自己处理WM_ERASEBKND消息。下面是工作步骤: 创建一个从CWnd类继承的类,就叫它CMDIClient吧; 在CMDIFrameWnd中加入CMDIClient变量;(具体情况看下面的代码转载 2013-12-04 00:14:49 · 11244 阅读 · 0 评论 -
MFC中设置文本的颜色
改变static的颜色和设为背景透明可以在父窗口的WM_CTLCOLOR中实现(即HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor))将static设为背景透明时,改变该控件的文本将会出现文字重叠的现象。 其实设置为透明背景也就是在static重画背景时返回一个空的刷子而已,所以你改变文本并没有改变上次残留的背景,转载 2013-12-03 23:55:45 · 1271 阅读 · 0 评论 -
MFC中旋转文字方向
今天实验课需要用到文字竖排的功能,在网上找了一下资料,自己也总结了一下。得到两种方法。方法一:利用CFont类实现文字竖排 CFont font; VERIFY(font.CreateFont( 12, // nHeight 0, // nWidth原创 2013-12-03 23:20:35 · 5176 阅读 · 0 评论 -
MFC积累---20111105(关于设置背景图片、背景颜色插入背景音乐)
[cpp] view plaincopyCPaintDC dc(this); CRect rect; GetClientRect(&rect); CDC dcMem; dcMem.CreateCompatibleDC(&dc); CBitmap bmpBackground; bmpBackground.LoadBitm转载 2013-12-04 00:17:38 · 1353 阅读 · 0 评论 -
Qt Creator中加入新的ui文件时报错
原因分析:moc_开头的文件编译过程中没有重新生成导致。解决办法:删除编译产生的build文件夹,重新编译即可。错误类型截图如下:这个问题的解决,使得可以在任何时候都可以在工程中加入新的ui文件,而不必在开始就添加所有的ui文件,减少了开发难度。对于这个问题的解决方法,个人觉得这是最好的解决方法。为了解决这个问题,之前也查了很多资料,但没有找到合适的方法。而且删原创 2014-04-28 09:05:02 · 2504 阅读 · 0 评论 -
关于VS访问冲突的原因及解决方法
唉,搞了一天,总是内存访问错误,这个急啊。。。好在最后一瞬间觉悟了。。。现在总结一下吧。。。截图如下:出现这种错误的原因大概有以下几种:1、数据越界(可能性比较小)2、空的指针(可能性最大),通常都是这种情况。如果数组越界,VS会有相应的数组越界的提示,通常不是截图所示错误,而如下图所示;红色框中提示数组下标越界。原创 2014-06-03 22:05:44 · 31765 阅读 · 1 评论 -
程序员都是有强迫症的
昨天晚上,为了完成实验室任务,一直写代码,写到两点多,然后总算是写完了。但是程序员都知道,调试的过程通常是最复杂的,因为可能遇到各种奇葩的错误,而错误产生的原因多种多样,或者是逻辑错误,或者是输入错误,或者是访问错误。。。各种各样的错误,毫无头绪。。。。。 程序员大都有强迫症,尤其在编程这件事情上。为了改正程序中的错误,可以熬夜,直到找到错误并改正错误。 找到错误本身就有挑原创 2014-05-21 09:21:45 · 2046 阅读 · 0 评论 -
QT软件打包图文教程
QT程序打包图文教程详解原创 2014-06-07 09:20:57 · 1694 阅读 · 1 评论 -
opencv入门教程 <一>
本篇博文作为系列博文的第一篇,主要讲解一些opencv的基本操作,包括读取、写回、访问像素、修改像素、显示照片。读取照片 所用函数:Mat imread(const string& filename, int flags) (C++ function) 其中:filename为文件名,flags代表读取方式,默认情况下读取通道为3,当设置为原创 2014-06-15 22:08:30 · 1360 阅读 · 0 评论 -
ra_serf: The server sent a truncated HTTP response body.
ra_serf: The server sent a truncated HTTP response body. ra_serf:服务器发送的HTTP响应体截断。 The data sent is too big and the server closes the connection due to reaching a limit. Possible steps whic原创 2014-12-25 11:41:08 · 17473 阅读 · 0 评论 -
"无法找到“XXX.exe”的调试信息,或者调试信息不匹配
今天调试一C++程序,按下F5,老是弹出一对话框显示信息:debugging information for 'myproject.exe' cannot be found or does not match. No symbols loaded. 翻译成中文大概就是:不能找到'myproject.exe' 的调试信息或者调试信息不匹配。符号文件未加载。 起初,我以为是没转载 2014-12-27 09:33:33 · 1365 阅读 · 0 评论 -
Github for Windows使用介绍
Git已经变得非常流行,连Codeplex现在也已经主推Git。Github上更是充斥着各种高质量的开源项目,比如ruby on rails,cocos2d等等。对于习惯Windows图形界面的程序员来讲,Github的使用是需要点时间和耐心的,然而最近Github发布了Github for Windows 则大大降低了学习成本和使用难度,他甚至比SVN都简单,好吧,你不信,我们来一步一步转载 2014-12-28 22:04:46 · 792 阅读 · 0 评论 -
Win8.1 + Dev C++
本文想要简单说明如何在win8.1上使用dev c++。在刚开始用win8.1的时候,我以为只要是64位的Dev就可以在win8.1上安装,但是接连试了几次,安装是成功了,但是每次打开的时候就会出现问题。后来经过百度才知道,win8.1和win7的架构不一样。在64位win7系统上可以正常使用的Dev,在win8.1上却不能正常使用。经过百度,最终找到了一个可以在win8.1上正常原创 2015-01-03 17:02:57 · 1652 阅读 · 0 评论 -
Time-Delay Neural Network(TDNN)-上
前言本篇博客仅对TDNN的网络结构进行简单梳理,使读者对TDNN的网络结构有一个清晰直观的印象。博客基于对论文 Phoneme Recognition Using Time-Delay Neural Network 的阅读和理解,如有谬误,还望指出,不胜感激。正文TDNN与1989年就已提出(在我出生之前), 用于音素识别。以下部分将以论文中的结构做简单说明,网络结构如下图:...原创 2018-08-11 16:59:47 · 8769 阅读 · 0 评论 -
字符串排序
题目1135:字符串排序时间限制:1 秒内存限制:32 兆特殊判题:否提交:1036解决:519题目描述:先输入你要输入的字符串的个数。然后换行输入该组字符串。每个字符串以回车结束,每个字符串少于一百个字符。如果在输入过程中输入的一个字符串为“stop”,也结束输入。然后将这输入的该组字符串按每个字符串的长度,由小到大原创 2013-12-02 10:52:31 · 1587 阅读 · 0 评论 -
数据结构线性表之顺序表解说
线性表的概念就不多说了,相信看过数据结构的人都明白...我想说的是线性表中的顺序表。首先定义一个新的结构体:typedef struct { int *elem原创 2013-10-28 19:39:30 · 905 阅读 · 0 评论 -
C++之内置(内嵌、内联)函数
函数调用需要一定的时间和空间开销,函数调用前要进行“现场保护”,调用结束后要进行“现场恢复”,同时参数要占用一定的内存。函数调用过程:1.程序先执行函数调用之前的语句; 2.流程的控制转移到被调用函数的入口处,同时进行参数传递; 3.执行被调用函数中中的语句原创 2013-10-28 21:58:02 · 1199 阅读 · 1 评论 -
Surprising Strings
The D-pairs of a string of letters are the ordered pairs of letters that are distance D from each other. A string is D-unique if all of its D-pairs are different. A string is surprising if it is D-u原创 2013-10-05 10:01:05 · 835 阅读 · 0 评论 -
Adding Reversed Numbers
The Antique Comedians of Malidinesia prefer comedies to tragedies. Unfortunately, most of the ancient plays are tragedies. Therefore the dramatic advisor of ACM has decided to transfigure some tragedi原创 2013-10-05 10:06:34 · 1426 阅读 · 0 评论 -
TJU Sequence
After the final exam, Shawn started to play a computer game SW. In the game, Shawn needs to make his equipments. Just like the pattern of most of other games, SW’s equipment can be improved by stone原创 2013-10-06 21:42:34 · 781 阅读 · 0 评论 -
Nuanran's Idol II
You have known that nuanran is a loyal fan of Kelly from the last contest. For this reason, nuanran is interested in collecting pictures of Kelly. Of course, he doesn't like each picture equally. So h原创 2013-10-06 10:36:02 · 1172 阅读 · 0 评论 -
TOJ A+B Problem
You know that the first problem of an online judge system should be the "A+B Problem", but TOJ not. What a terrible! So now it comes...Given a series of numbers, your task is to find the largest num原创 2013-10-06 15:28:39 · 1335 阅读 · 0 评论 -
TJU Vacation
Z is planning to visit the Tourist Kingdom for M days. This kingdom is full of lovely cities. During his stay Z would like to visit as many different cities as possible. He cannot visit more than on原创 2013-10-06 22:07:45 · 727 阅读 · 0 评论 -
TJU Count the factors
The ProblemWrite a program, that computes the number of different prime factors in a positive integer.The InputThe input tests will consist of a series of positive integers. Each number is on a原创 2013-10-07 19:10:05 · 857 阅读 · 0 评论 -
TJU Happy 2004
Consider a positive integer X,and let S be the sum of all positive integer divisors of 2004X. Your job is to determine S modulo 29 (the rest of the division of S by 29).Take X = 1 for an example.转载 2013-10-07 20:12:27 · 844 阅读 · 0 评论 -
TJU Antimonotonicity
I have a sequence Fred of length n comprised of integers between 1 and n inclusive. The elements of Fred are pairwise distinct. I want to find a subsequence Mary of Fred that is as long as possible转载 2013-10-07 22:39:49 · 756 阅读 · 0 评论 -
TJU Price
Ant is a student in Tianjin University. Everyday, he has to go to the restaurant in school. Recently, some other students complain about the high price of restaurant dishes. Ant is a poor man, he do原创 2013-10-09 11:54:40 · 638 阅读 · 0 评论 -
scanf()如何读取一整行(转)
用scanf获取一行字符串包括空格的以及C语言函数其内容为#includeint main(){ char str[1024]; scanf("%[^\n]", &str); ... return 0;}说明:在scanf函数中, 可以使用%c来读取一个字符, 使用%s读取一个字符串, 但是读取字符转载 2013-10-14 22:33:43 · 4598 阅读 · 4 评论 -
C语言学习总结
1.C语言并不提供输入输出,而是由C函数库实现的输入输出。2.putchar(c)输出一个字符,包括换行、空格3、getchar()输入一个字符,包括空格、换行4.printf(格式控制,输出列表) 普通字符原样输出,也可以输出空格、逗号、换行。%f 输出单精度时保留6-7为有效数字,输出双精度时,保留15-16位有效数字。5.scanf(格式控制,地址列表)格式控制中的普通字符要原创 2013-10-15 12:17:05 · 999 阅读 · 0 评论 -
变量的存储类别
变量的存储类别:主要针对时间属性,引出存储期概念。存储期:静态存储期 和 动态存储期。静态存储期:程序运行开始分配固定存储空间;动态存储期:程序运行期间动态的分配和释放内存。存储期有四种:自动的(auto),静态的(static),寄存器的(register),外部的(extern)。自动变量:函数的形参,函数中定义的变量。默认情况即为自动变原创 2013-10-25 09:20:36 · 1007 阅读 · 0 评论 -
C语言中文件的操作
文件:一般指存放在外部介质上数据的集合。文件名:文件路径+文件名主干+文件后缀 ,如 d:\cc\temp (路径)+file1(文件主干名)+.dat(后缀)文件分类:ASCII文件 和 二进制文件 ,两中类型的存储方式不同。例如:存放整数 10 000 ;在内存中表示为 0 01 0 0 1 1 1 0 0 0 1 0 0 0 0;以ASCII形式保原创 2013-10-27 20:45:29 · 959 阅读 · 0 评论 -
数据结构线性表之顺序表实作
#include#includeusing namespace std;#define LIST_INIT_SIZE 100 //线性表存储空间的初始分配量#define LISTINCREMENT 10 //线性表存储空间的分配增量typedef struct {int *elem; //存储空间基址int length原创 2013-10-28 19:20:29 · 958 阅读 · 0 评论 -
NEON Intrinsics
本篇博客将对NEON Intrinsic进行介绍,同时末尾会给出几个example。如有谬误,烦请指出,谢谢。IntroductionNEON Intrinsics是一种比汇编更高级的API,可以直接在C/C++中进行调用。使用汇编,我们可以对更多的硬件执行细节进行控制,但是汇编相对来说维护代价较高。相比之下,NEON Intrinsic易于维护,同时也可以对硬件执行细节进行一定...原创 2018-08-19 19:37:10 · 2917 阅读 · 0 评论