January 23rd, 2013, 10:03 AM
January 23rd, 2013, 07:50 AM
How to solve this problem.
class FlipUpCommand: public Command
{
public:
template <typename t>
FlipUpCommand(t *obj)
{
}
January 23rd, 2013, 05:50 AM
Why the colors are not appearing in my code ?
January 23rd, 2013, 05:46 AM
January 23rd, 2013, 04:44 AM
FlipUpCommand switchUp(*myobj);
January 23rd, 2013, 04:32 AM
Error: `void*' is not a pointer-to-object type
January 23rd, 2013, 04:10 AM
Ok. then I have to put FlipUpCommand switchUp(*myobj); statement in each 'IF' which I do not want to do.
January 22nd, 2013, 09:59 AM
I am assuming that I do not have the right to change the vendor class and each vendor is providing its own class of implementation.
January 22nd, 2013, 09:43 AM
The Light and Fan are two different vendor classes and they are not derived from any base class.
I am trying to implement the Command design pattern but with generic implementation, so it should...
January 21st, 2013, 05:04 AM
The Light and Fan are two different vendor classes and they are not derived from any base class.
I am trying to implement the Command design pattern but with generic implementation, so it should...
January 18th, 2013, 09:00 AM
I am trying to create an object at user choice and then passing that object to the
FlipUpCommand switchUp(*myobj);
If user select Light then it creates Light object, if user select Fan...
January 18th, 2013, 06:55 AM
Hi,
How to solve the below mentioned problem ?
Light *myobj;
Fan *myobj;
int choice;
cout<<"Select Light (1): ";
cout<<"Select Fan (2): ";
cin>>choice;
January 18th, 2013, 06:28 AM
if (choice ==1){
Light *myobj = new Light();
}
FlipUpCommand switchUp(*myobj);
Error: `myobj' undeclared (first use this function)
Please advice how to solve this problem without...