Latest Answer: Both the above methods doesn't meet the purpose. Try thisclass singleton{ private: /*add what ever data members necessary*/ static singleton* obj; singleton() ...
Latest Answer: Enum is not an operator. It is a datatype. Hence it can NOT be overloaded as an operator.You can define operations on enum datatypes and Overload operators for perfoming operations using enum though.If your question is "Overloading Enum", then using operator ...
"Given a MAKEFILE (yeah a makefile), design the data structure that a parser would create and then write code that iterates over that data structure executing commands if needed.
Latest Answer: multiplication is a costly operation,costlier than bit operations.So,it is a better practice to use bit operation that is > for divsion when you are multiplying with a factor of 2 otherwise its not suggested. ...
If static int temp; defined in one file1, then can we use this same temp variable in file 2 ? Is it possible to do this with EXTERN ?
How can i overload the subscript operator [] with more than 1 dimension.. like [][][].. if possible pls give an example
Latest Answer: A static array is an array with fixed number of dimentions and each dimention will have fixed length. You can not change the dimentions of the Static array during runtime.ex: int arr[10][20] It has Two dimentions. Each fixed, one to 10 other to 20.Well ...
How can i overload the subscript operator with more than i dimension? if possible give an example.. pls dont ignore
Latest Answer: C++ structs are classes with default access as public.C++ structs are typesC++ structs require a ;C++ structs support ctors/dtorsC++ structs support explicit access specificationC++ structs support inheritanceC++ structs do not have tag names (they are ...
View page << Previous 1 2 3 [4] 5 Next >>

Go Top