05 2013 档案
摘要:Description of the problem: Katz is a little boy who is very funny and very interesting in reading fairy tale. When he finished reading a book, he always want to find out the different words in the book, and then he counts the words whose length is no less than a specific number. It's a time-con
阅读全文
摘要:模板类的继承包括四种:1.(普通类继承模板类)2.(模板类继承了普通类(非常常见))3.(类模板继承类模板)4.(模板类继承类模板,即继承模板参数给出的基类)其中,普通类继承模板类比较简单,如1 template<class T>2 class TBase{3 T data;4 ……5 };6 class Derived:public TBase<int>{7 ……8 };模板类继承普通类:1 class TBase{2 ……3 };4 template<class T>5 class TDerived:public TBase{6 T data;7 ……8
阅读全文
摘要:课堂作业是要进行大整数的运算,写完没事发上来。。题目要求:用c++进行两个超大整数的算数运算,比如1111111111111111111111111111 + 11111111111111111111111111,用类来做。定义一个Integer的类用于取代平常所用的int类型,有如下几个要求:1) 为Integer定义两个构造函数,一个是只有一个int类型的参数的函数,一个是只有string类型的参数的函数2) 重载算术操作符: +, -, *, /, %, +=, -=, *=, /=, %=, ++, --3) 重载关系操作符: ==, !=, >, <, >=, &l
阅读全文
摘要:我的电脑是联想u410的,一直不能双指滑动,找了好久发现了这样的驱动,还是可以的:Vista/Win7驱动下载ftp://ftp.hp.com/pub/softpaq/sp47501-48000/sp47815.exeXP驱动下载ftp://ftp.hp.com/pub/softpaq/sp47501-48000/sp47816.exe安装方法我就不多说了。。
阅读全文

浙公网安备 33010602011771号