04 2012 档案

摘要:程序长了,又因为提前做了一些优化,导致参数就不是正确的。 所以看来宏定义还是蛮好的,前面被老板批了一顿,定义宏太多,现在把宏定义直接改成计算好的数据,在尝试修改变量的时候就出现了,这样那样的问题。 应该考虑使用C++的const了,这几天看的心动的要把程序从c转成c++了,不错貌似工作量不小呀。 看看错误和正确的结果,相差甚远呀。 错误的结果。 另外,碰到了很诡异的too many unma... 阅读全文
posted @ 2012-04-19 12:33 郭—大—侠 阅读(249) 评论(0) 推荐(0)
摘要:refer to http://guoshaoguang.com/?p=27 linux各个发行版,比如Ubuntu、Debian、Fedora、Redhat和CentOS都做过相关的测试。 为了使PGPLOT在上述平台正常工作,需要进行两步操作: 1.安装图形库,比如X11 2.设置一些环境变量,这是保证PGPLOT正常工作的前提。 做完上述两部就可以测试一些Demo程序,如果显示出图... 阅读全文
posted @ 2012-04-09 22:11 郭—大—侠 阅读(3548) 评论(1) 推荐(1)
摘要:! PGPLOT drivers.!------------------------------------------------------------------------------! To configure PGPLOT, ensure that drivers you do not want are! commented out (place ! in column 1). N.B... 阅读全文
posted @ 2012-04-09 21:38 郭—大—侠 阅读(338) 评论(0) 推荐(0)
摘要:今天在知乎里看到这个话题。瞬间秒杀呀,还没有考虑过这个问题。#include int main(int argc, char *argv[]){int a=123456;printf("%d",a);//123456printf("\n");printf("%d",printf("%d",a));//1234566 printf("\n");printf("%d",printf("%d",pri... 阅读全文
posted @ 2012-04-08 17:04 郭—大—侠 阅读(539) 评论(0) 推荐(0)
摘要:前两天,买的本本刚刚好,据说是软件硬件Both神机。来了就碰到一大部分问题,比如Sony自带软件太多,什么烂七八糟的东西都有,看电视的、特效的、音乐播放的,每次启动都会把我的右下角任务栏基本要占用到一半以上,虽然说i7,双核、4G内存的CPU使用率只是在10%左右,我也经不起这样的折腾一。太不干净了,只能把sony logo的全部软件彻底删除,貌似启动就没有问题了,本来想重装的,不过已经confi... 阅读全文
posted @ 2012-04-08 14:06 郭—大—侠 阅读(239) 评论(0) 推荐(0)
摘要:From: http://arstechnica.com/microsoft/news/2012/03/windows-8-start-button-isnt-coming-back-but-there-will-be-a-tutorial.ars The Start button won't be coming back, no matter how much detractors of ... 阅读全文
posted @ 2012-04-04 13:53 郭—大—侠 阅读(146) 评论(0) 推荐(0)
摘要:From : http://beza1e1.tuxen.de/articles/faster_than_C.html Judging the performance of programming languages, usually C is called the leader, though Fortran is often faster.(I did not know this thing ... 阅读全文
posted @ 2012-04-03 14:07 郭—大—侠 阅读(227) 评论(0) 推荐(0)