-
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
-
encode1sN0sWithLimit
To encode a binary data using runlength encoding with setting the count buffer to limit to a required datatype size value.
If image use reahape to make it to row.
- 2015-01-21 16:25:32下载
- 积分:1
-
bbs.rfeda.cn_Feko软件常用问题问答V1
说明: feko中常见问题总结,对于利用feko进行电磁计算仿真的同学有一定借鉴意义(The summary of common problems in FEKO can be used for reference for students who use FEKO to carry out electromagnetic simulation)
- 2020-11-18 11:44:34下载
- 积分:1
-
Untitled2
WAVE LET PID FOR aqm
- 2015-02-28 07:05:09下载
- 积分:1
-
shiftMutation
Shift mutation performs displaces one random gene in a permutation to another position.
- 2009-07-10 11:43:23下载
- 积分:1
-
串口通信
matlab接收串口程序,接收单片机发送的数据到电脑显示。(Matlab receives the serial program, receives the data that the one-chip computer sends to the computer reveals.)
- 2018-05-09 10:55:14下载
- 积分:1
-
dataTranlate
说明: 实现公历和农历之间的相互转换.包含了1899年到2100年202年的工农历数据,可以实现相互转换。(use to translate standard date and chinese data)
- 2010-03-23 20:16:32下载
- 积分:1
-
3
平方根法及改进的平方根法求解方程组问题分析(Square root method and the improved method of solving equations square root problem analysis)
- 2013-11-10 10:20:39下载
- 积分:1
-
KalmanAll
toolbox for kalman filter implementation
- 2013-04-25 21:05:15下载
- 积分:1
-
shiyan2
噪声中正弦信号的现代法频谱分析,分析了自相关法、Burg法、协方差法和改进的协方差法对功率谱的影响以及阶数、信噪比、窗长度对自相关法频谱分析的影响。(The influence of autocorrelation method, Burg method, covariance method and improved covariance method on power spectrum and the influence of order, signal-to-noise ratio and window length on the spectrum analysis of sinusoidal signal in noise are analyzed.)
- 2019-03-06 15:57:19下载
- 积分:1