Hi ALL,
I have a 4 Q's.
Is it true that while creating a multidimentional array with keyword NEW, all
the array sizes must be supplied? Even if the first dimension maybe a variable
whose value maybe supplied at runtime but all others must be constant, is that
true?
e.g,
array_ptr = new int[][5][4];
What if I want both/all of them to be dynamic?
2. class X {
private:
int m,n;
public:
show(int m, int n) {
---------------------------
};
void main()
{
X x;
x.show(2,4);
}
Is the above statement legal? What will be its output?What is usuage
constructor and why is it must in C++ programming? What is default contructor?
3. Can we change a constant numeric integer to its address or reference
usuing template?
4.template<class T> class FindMax&Mean {
private:
static T c;
int;
public:
static void FindMean( T *M, T *N) {
//-------------------
}
};...............
void main() {
int a,b;
FindMan&Mean <int> M1;
M1.FindMean(&a, &b);
}
Looking forward to learn from you all.
Best Regards.
---------------------------------
Find out what India is talking about on - Yahoo! Answers India
Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it
NOW