template<class T, class X> class Obj {
T my_t;
X my_x;
public:
Obj(T t, X x) : my_t(t), my_x(x) { }
};
Referring to the sample code above, which one of the
following is a valid conversion operator for the type T?
a) T operator T () { return my_t; }
b) T operator(T) const { return my_t; }
c) operator(T) { return my_t; }
d) T operator T (const Obj &obj) { return obj.my_t; }
e) operator T () const { return my_t; }
Search for: what is pair in c++?
What is conditions when using boolean operators?
Define basic type of variable used for a different condition in C++?
i have given a project to create examination seating plan system in c++. so can anyone send me the answer of this question quickly??????
What are files in c++?
Write a Program for dynamically intialize a 2 dimentional array. Eg:5x20, accept strings and check for vowels and display the no.finally free the space allocated .
Can we overload operator in c++?
What is the iunknown interface?
Distinguish between a # include and #define.
What is a concrete class?
Why cstdlib is used in c++?
Can inline functions have a recursion? Give the reason?