环境:XPSP3 VS2005 今天黑总给应聘者出了一个在C++的构造函数中调用虚函数的问题,具体的题目要比标题复杂,大体情况可以看如下的代码: [cpp] view plain copy class Base { public: Base() { Fuction(); } virtual void ...
分类:
编程语言 时间:
2017-07-05 22:03:43
阅读次数:
233
Little Joty has got a task to do. She has a line of n tiles indexed from 1 to n. She has to paint them in a strange pattern. An unpainted tile should ...
分类:
其他好文 时间:
2017-07-02 17:44:01
阅读次数:
178
习题 9: 打印,打印,打印 1 # Here's some new strange stuff, remember type it exactly. 2 3 days = "Mon Tue Wed Thu Fri Sat Sun" 4 months = "Jan\nFeb\nMar\nApr\nM ...
分类:
编程语言 时间:
2017-06-30 01:12:43
阅读次数:
282
一、fuction的四种方法 // 1, 方法调用模式 // 当一个函数被保存为对象的一个属性时,我们称之它为该对象的一个方法,那么this被绑定到该对象上 var myObject={ name : "myObject" , value : 0 , increment : function(num ...
分类:
其他好文 时间:
2017-06-22 00:09:47
阅读次数:
223
Some time the programmers have very strange ways to hide their passwords. See for example how Billy "Hacker" Geits hide his password. Billy chooses a ...
分类:
其他好文 时间:
2017-06-17 20:45:33
阅读次数:
268
Strange fuction Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 2982 Accepted Submission(s): 220 ...
分类:
其他好文 时间:
2017-06-07 14:30:15
阅读次数:
253
1553. Caves and Tunnels Time limit: 3.0 second Memory limit: 64 MB After landing on Mars surface, scientists found a strange system of caves connected ...
分类:
其他好文 时间:
2017-05-23 11:19:40
阅读次数:
200
There is a strange lift.The lift can stop can at every floor as you want, and there is a number Ki(0 <= Ki <= N) on every floor.The lift have just two ...
分类:
其他好文 时间:
2017-05-20 16:32:26
阅读次数:
233
S-Trees Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 1499 Accepted: 807 Description A Strange Tree (S-tree) over the variable set Xn = { ...
分类:
其他好文 时间:
2017-05-18 17:56:00
阅读次数:
582
Strange Optimization Accepted : 35 Submit : 197 Time Limit : 1000 MS Memory Limit : 65536 KB Strange Optimization Bobo is facing a strange optimizatio... ...
分类:
其他好文 时间:
2017-05-15 15:10:44
阅读次数:
332