摘要: result love(boy, girl) { if( boy.有房() and boy.有车() ) { boy.set(nothing); return girl.嫁给(boy); } if( girl.愿意等() ) { while(!(boy.赚钱 > 100,000 and girl.感情 > 8 ) ) { for( day=1; day <=365; day++) { if( day == 情人节 ) if( boy.givegirl(玫瑰) ) ... 阅读全文
posted @ 2010-05-25 18:40 往事如风似过往 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 今天遇到了一个很奇怪的乱码问题,自己无意中解决了,但不知道是什么原因,只好记下来,防止以后再出现这样的问题。当我把php语句写到下面的页面头信息之前的时候,这些php输出语句都输出的是乱码,包括用echo输出的js。如:echo "<script languge=javascript> alert('添加成功!');location.href = 'device_add.php';</script>";弹出来的“添加成功”也变成了乱码。<!DOCTYPE html PUBLIC "-//W3C//DTD 阅读全文
posted @ 2010-05-16 18:21 往事如风似过往 阅读(161) 评论(0) 推荐(0) 编辑
摘要: <form>标签的问题!请教! 悬赏分:10 - 解决时间:2006-12-31 07:41 老师你好:我在DW里写出了以下代码:<form action="checkuser.asp" method="post" name="Loginform" id="Loginform"><!--内容--></form>我在这段代码</form>后面插入了一个表格问题就出在这里,<form>隔一行显示表格,如何去掉这行;或者如何让<form> 阅读全文
posted @ 2010-05-02 15:38 往事如风似过往 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 现在我们开始介绍新闻的列表和删除了。 新建立一个文件listnews.php,内容如下:< ?phprequire_once('../inc/config.php');//包含配置文件?><html><head></head><title>新闻管理</title><body><div class="newstitle"></div><div class="newslist">< ?php//这里显示新闻列表$pag 阅读全文
posted @ 2010-05-02 14:50 往事如风似过往 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 今天用vs2005编译一个项目的时候出现下面2个错误:DibImage.obj : error LNK2019: 无法解析的外部符号 _cuda,该符号在函数 "public: bool __thiscall CDibImage::MedianFilter(char *,long,long,int,int,int,int)" (?MedianFilter@CDibImage@@QAE_NPADJJHHHH@Z) 中被引用1>./Debug/DIBDisplay.exe : fatal error LNK1120: 1 个无法解析的外部命令我把所有的库就加上了还是有那2 阅读全文
posted @ 2010-04-20 21:15 往事如风似过往 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 转自: http://hi.baidu.com/sunguangran/blog/item/ded90ced94779dd2b31cb11c.html终于搞明白gluPerspective和gluLookAt的关系了函数原型gluLookAt(GLdoble eyex,GLdouble eyey,GLdouble eyez,GLdouble centerx,GLdouble centery,GLdouble centerz,GLdouble upx,GLdouble upy,GLdouble upz);gluPerspective(GLdouble fovy,GLdouble aspect,G 阅读全文
posted @ 2010-04-12 22:50 往事如风似过往 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 在安装完CUDA driver、CUDA toolkit、CUDA SDK后,再安装CUDA VS Wizard后,就可以在vs2005中建立相应的CUDA项目了。但是建立项目后执行可能会出现错误。 一、fatal error C1083: 无法打开包括文件:“cutil_inline.h”: No such file or directory 这个是因为没有把头文件所在的路径添加到VS中。 解决方法:Tools->Options->Projects and solutions->VC++ Directories Show diectories for:选择“Include 阅读全文
posted @ 2010-03-20 21:40 往事如风似过往 阅读(344) 评论(0) 推荐(0) 编辑
摘要: sudo apt-get install libqt4-devsudo apt-get install libqt4-guisudo apt-get install libqt4-sqlsudo apt-get install qt4-designersudo apt-get install qt4-dev-toolssudo apt-get install qt4-docsudo apt-get install libqt4-designersudo apt-get install qt4-qtconfig 阅读全文
posted @ 2010-03-06 23:26 往事如风似过往 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 新装的服务器可能设置了错误的,需要调整时区并调整时间.如下是使用NTP来从一个时间服务器同步cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtimentpdate us.pool.ntp.org很简单吧,解析一下,第一句是把当前时区调整为上海就是+8区,想改其他时区也可以去看看/usr/share/zoneinfo目录;然后第二句是利用ntpdate同步标准时间.没有安装ntpdate的可以yum一下:yum install -y ntpdate加入定时计划任务,每隔10分钟同步一下时钟crontab -e0-59/10 * * * * /usr/ 阅读全文
posted @ 2010-03-03 14:33 往事如风似过往 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 1、新建目录qthello,并进入qthello目录mkdir qthellocd qthello注意:Qt 程序项目不能以 "qt"、“qt-mt”、“qte” 等作为其顶级目录名,否则编译时会发生错误。建立源文件hello.cpp,并输入下列内容,然后保存。 #include <QApplication>#include <QLabel>int main (int argc, char *argv []){ QApplication app (argc, argv); QLabel *label = new QLabel ("Hello 阅读全文
posted @ 2010-01-27 21:33 往事如风似过往 阅读(235) 评论(0) 推荐(0) 编辑