六、程序题 ?? 1.写一个复数类(操作符重载) ? #include<iostream>
using namespace std;
class Complex{
public:
Complex(double r=0.0,double i=0.0):read(r),imag(i){};
Complex operator+(const Compl...
分类:
其他好文 时间:
2015-01-05 00:42:38
阅读次数:
201
温故而知新,无意中发现以前实验lambda的时候写的测试代码,第一个反映就是,这是我写的????!!! 呵呵,想想XX语言刚把lambda正式加进去,python早早支持了,我可以大喊一声”Python是最好的语言“来找找骂...
分类:
编程语言 时间:
2015-01-05 00:42:38
阅读次数:
239
NetworkError: 404 Not Found - http://xxxxxxxx/xx-font.woff解决方法 asp.net 中会遇到一个@font-face问题: NetworkError: 404 Not Found - http://xxxxxxxx/xx-font.woff修...
分类:
Web程序 时间:
2015-01-04 16:36:10
阅读次数:
459
之前写了一篇文章是关于如何读取指定盘符下的图片,虽然功能可以实现,但是使用的是I/O流的方式,效率不高。现在发现还有一个更好的办法,使用也更加的方便。我们知道,当我们的图片是放在tomcat下webapps的应用目录下,使用src="127.0.1:8080/xx/123.png"这种方式就能访问图...
分类:
编程语言 时间:
2015-01-04 11:06:33
阅读次数:
173
条件表达式是常见的一种表达式,看看下面这段代码输出什么?char x = 'X';int i = 0;System.out.print(true ? x : 0);System.out.print(false ? i : x);预期是 XX,结果输出的是 X88这里涉及到混合类型在表达式中的处理:x...
分类:
编程语言 时间:
2015-01-03 22:15:54
阅读次数:
197
@echo off set "Ymd=%date:~,4%%date:~5,2%%date:~8,2%" cd D: md %Ymd% cd "C:\Program Files (x86)\MySQL\MySQL Server 5.1\bin" cd C: mysqldump -u root -proot -h xx.xx.xx.xx eoss-product > D:/%Ymd%/%Ymd...
分类:
数据库 时间:
2015-01-03 16:03:47
阅读次数:
184
一、解压.bz2文件tar jxvf XX.tar.bz2如果tar不支持j选项,就用下面方式解压bzip2 -d XX.tar.bz2tar -xvf XX.tar.bz2二、在/root/.bashrc文件里定义了rm等的别名,可以根据需要进行修改。
分类:
其他好文 时间:
2015-01-03 02:02:21
阅读次数:
198
When learning Python many people don't really understand why so much underlines in the beginning of the methods, sometimes even in the end like__this_...
分类:
编程语言 时间:
2015-01-02 19:53:40
阅读次数:
278
描述:假设用户请求地址:http://xxx.action?date=2015-01-01. 假设action中已经存在了date属性,且类型为Date。当用户请求的参数格式为xxxx-xx-xx或者xxxx-x-x的时候,action可以正常的接收到日期类型,即string字符串可以自动转换为Da...
分类:
其他好文 时间:
2015-01-01 17:11:54
阅读次数:
174