摘要: 方法1:类的头文件中写#pragma onceclass MyTeacher{public: MyTeacher(); ~MyTeacher();};方法2:类的头文件中写#ifndef _MYTEACHER_H_#define _MYTEACHER_H_class MyTeacher{public... 阅读全文
posted @ 2015-06-09 23:27 Say舞步 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 函数重载与函数指针:当使用重载函数名对函数指针进行赋值时,根据重载规则挑选与函数指针参数列表一致的候选者,严格匹配候选者的函数类型与函数指针的函数类型。demo#include using namespace std;void myfunc(int a){ printf("a:%d \n", a);... 阅读全文
posted @ 2015-06-09 21:19 Say舞步 阅读(428) 评论(0) 推荐(0) 编辑
摘要: Floating-point numbers are represented differently in computers than integers. That is why a 32-bitfloating-point number can represent values in the ma... 阅读全文
posted @ 2015-06-09 20:58 Say舞步 阅读(262) 评论(0) 推荐(0) 编辑
摘要: A research laboratory of a world-leading automobile company has received an order to create a special transmission mechanism, which allows for incredi... 阅读全文
posted @ 2015-06-09 20:08 Say舞步 阅读(201) 评论(0) 推荐(0) 编辑
摘要: Ivan works at a factory that produces heavy machinery. He has a simple job -- he knocks up wooden boxes of different sizes to pack machinery for deliv... 阅读全文
posted @ 2015-06-09 19:39 Say舞步 阅读(158) 评论(0) 推荐(0) 编辑
摘要: You have devised a new encryption technique which encodes a message by inserting between itscharac- ters randomly generated strings in a clever way. B... 阅读全文
posted @ 2015-06-09 16:56 Say舞步 阅读(122) 评论(0) 推荐(0) 编辑
摘要: The decimal expansion of the fraction 1/33 is, where theis used to indicate that the cycle 03 repeats indefinitely with no intervening digits. In fact... 阅读全文
posted @ 2015-06-09 16:25 Say舞步 阅读(166) 评论(0) 推荐(0) 编辑
摘要: A crossword puzzle consists of a rectangular grid of black and white squares and two lists of definitions (or descriptions).One list of definitions is... 阅读全文
posted @ 2015-06-09 14:31 Say舞步 阅读(118) 评论(0) 推荐(0) 编辑
摘要: A children's puzzle that was popular 30 years ago consisted of a 5x5 frame which contained 24 small squares of equal size. A unique letter of the alph... 阅读全文
posted @ 2015-06-09 13:02 Say舞步 阅读(130) 评论(0) 推荐(0) 编辑
摘要: A character string is said to have periodkif it can be formed by concatenating one or more repetitions of another string of lengthk. For example, the ... 阅读全文
posted @ 2015-06-09 01:05 Say舞步 阅读(130) 评论(0) 推荐(0) 编辑
摘要: Trung is bored with his mathematics homeworks. He takes a piece of chalk and starts writing a sequence of consecutive integers starting with 1 toN(1 #... 阅读全文
posted @ 2015-06-09 00:15 Say舞步 阅读(111) 评论(0) 推荐(0) 编辑