-
Virtual-router
C,C++ Questions
1. Base class has some virtual method and derived class has a method with the same name. If we initialize the base class pointer with derived
object,. calling of that virtual method will result in which method being called?
a. Base method
b. Derived method..
Ans. b
2. For the following C program
#define AREA(x)(3.14*x*x)
main()
{float r1=6.25,r2=2.5,a
a=AREA(r1)
printf("
Area of the circle is f", a)
a=AREA(r2)
printf("
Area of the circle is f", a)
}
What is the output?
Ans. Area of the circle is 122.656250
Area of the circle is 19.625000
3. What do the following statements indicate. Explain.
• int(*p)[10]
• int*f()
• int(*pf)()
• int*p[10]
Refer to:
-- Kernighan & Ritchie page no. 122
-- Schaum series page no. 323
- 2011-03-15 14:22:27下载
- 积分:1
-
Bayliss-weighting
It is Bayliss weighting source code.
- 2020-12-09 16:29:18下载
- 积分:1
-
creaseg2010
code source matlab segmentation
- 2011-06-17 16:07:28下载
- 积分:1
-
Sliding-control
刘金琨《滑模变结构控制MATLAB仿真(第2版)》书中的仿真程序,原书第二版已取消了附带光盘(Liu Jinkun "Sliding Mode Control MATLAB (2nd Edition)" in the book of the simulation program, the second edition of the original book has been canceled with CD-ROM)
- 2013-03-11 09:40:31下载
- 积分:1
-
遗传算法工具箱
遗传算法可以求解背包问题,对于最为一般的线性约束不等式,遗传算法理想中可以达到最优值。matlab的遗传算法工具箱,可以使写遗传算法时,使用简单的一句函数,就可以完成一些复制的功能。利用谢菲尔德工具箱中的函数,简单的完成上述工作。
- 2023-04-01 11:20:04下载
- 积分:1
-
thesis
关于粒子群优化的好文章,文章的PSO说话的很详细,希望能给新手一些帮助。(About Particle Swarm Optimization a good article, the article PSO speak in great detail, I hope to give beginners some help.)
- 2014-08-07 22:01:23下载
- 积分:1
-
Matlab 检测图像中的线段
Matlab 用3*3的模版检测图像中的线段,3*3模版包括水平线段、四十五度线段、垂直线段、负四十五度线段、。
- 2022-03-25 13:26:59下载
- 积分:1
-
pcm_with_noise_matlab
simulator pcm with noise using matlab
- 2009-03-05 17:56:03下载
- 积分:1
-
chaoliujisuan
通过总结几种潮流计算的方法,并通过MATLAB进行编程(Summary of several flow calculation method, and through MATLAB programming
)
- 2012-05-07 10:07:21下载
- 积分:1
-
baoluo
自己写的matlab源码,用于球信号包络,非常好用,简单可靠。(Write their own Matlab source code for the ball signal envelope, very easy to use, simple and reliable.)
- 2013-05-19 22:37:38下载
- 积分:1