题目如下:
Tree
You are to determine the value of the leaf node in a given binary treethat is the terminal node of a path of least value from the root of thebinary tree to any le...
分类:
其他好文 时间:
2014-06-05 05:27:11
阅读次数:
268
问题RT,在程序中我使用了QT的监听事件,监听鼠标的位置,如果鼠标在按钮上就改变按钮的ICON,但是在Release版本中(Debug版本没问题),这些被监听的按钮都看不见了,于是开始了寻找答案的道路。
闲话少叙,直接上码:
void MainHomeForm::init()
{
//为按钮注册事件
ui->SystemSetButton->installEventFilter...
分类:
其他好文 时间:
2014-06-05 04:29:25
阅读次数:
537
好吧,我承认我怂了.
今天在在用laravel框架写一个文件上传的部分.发现路径始终配不对.但是最终还是解决了.
下面我分享一下自己的学习体会吧.
客户端
提交到服务器端.
$file = Input::file('myfile');
if($file -> isValid()){
//检验一下上传的文件是否有效.
$clientNa...
分类:
Web程序 时间:
2014-06-05 03:38:39
阅读次数:
489
系统centOS-6.3
方法操作很简单,如下:
# /etc/init.d/mysql stop
# mysqld_safe --user=mysql --skip-grant-tables --skip-networking &
# mysql -u root mysql
# mysql>use mysql ;
mysql> UPDATE user SET Password=PAS...
分类:
数据库 时间:
2014-06-05 02:54:40
阅读次数:
331
在本章,我们会看看ARM处理器处理中断的一系列方法,简单地看看通用中断控制器(Generic Interrupt Controller,GIC)架构。
旧版本的ARM架构允许实现者在他们的外部中断控制器设计中相当大的自由,没有关于中断类型或数量,或者是被用于中断控制模块接口的软件模型的协议。GIC架构提供一个更为严格的控制规范,使得来自不同制造商之间的中断控制器之间有更高程度的一致性。这...
分类:
其他好文 时间:
2014-06-05 02:52:08
阅读次数:
1285
在工作中的经常使用repo命令,但是有时会忘记一些命令和遇到的一些问题,记录下来方便已经查询。
问题1:找不到命令:repo
方法:
在下载android源码的时候用repo时提示找不到命令,可以用如下方法解决,在命令行中输入如下两行:
echo 'export PATH=$PATH:$Home/bin' >>~/.bashrc
export PATH=$PATH...
分类:
移动开发 时间:
2014-06-05 02:39:47
阅读次数:
265
看好了,不是MFC工程,是VC工程,MFC的API和标准win32API还是不一样的,网上很多都是这种方法:
((CButton *)GetDlgItem(IDC_RADIO1))->SetCheck(TRUE); //RadioButton选上
但是在wince平台上不行,只能使用如下方法(#include windowsx.h>):
Button_SetCheck(GetD...
大家都知道php 的核心函数 sendmail 可以发送邮件,我在ubuntu 下测试可以实现,但在window 2003 无法发送邮件,非常郁闷,只好换了一种方法,借用php 的socket 功能可以发送邮件。
首先我们需要导入以下几个类:
phpmailer.class.php
<?php
/**
* 课程预约课程报名
*/
header ( "Conten...
分类:
Web程序 时间:
2014-06-05 00:39:23
阅读次数:
2073
解决办法:
mysql> SET PASSWORD = PASSWORD('123456');
Query OK, 0 rows affected (0.03 sec)
mysql> create database roger;
Query OK, 1 row affected (0.00 sec)
也就是用mysql> SET PASSWORD = PASSWORD('123456...
分类:
数据库 时间:
2014-06-05 00:19:53
阅读次数:
294
【题目】
Validate if a given string is numeric.
Some examples:
"0" => true
" 0.1 " => true
"abc" => false
"1 a" => false
"2e10" => true
Note: It is intended for the problem statement to be ambiguous. You should gather all requirements up front before imple...
分类:
其他好文 时间:
2014-06-04 23:45:09
阅读次数:
388