Shaun
04-22-2001, 05:40 PM
Hi, can someone please tell me how to order a few numbers, using pointers.
The list has three numbers which are set deafult values.
here is part of the program Mat,Mouse and Keyboard are classes and are dynamically
created in run time...
void main(void)
{
Mat* b1 = new Mat(75.5); //deafult values
Mouse* b2 = new Mouse(55.5);
KeyBoard* b3 = new KeyBoard(125);
}
I would like to order the numbers in a new function in main
maybe it is not possible what i am tyring to do, and i might be better off
trying a different method all together in what iam trying to achive
many thanks
shaun
The list has three numbers which are set deafult values.
here is part of the program Mat,Mouse and Keyboard are classes and are dynamically
created in run time...
void main(void)
{
Mat* b1 = new Mat(75.5); //deafult values
Mouse* b2 = new Mouse(55.5);
KeyBoard* b3 = new KeyBoard(125);
}
I would like to order the numbers in a new function in main
maybe it is not possible what i am tyring to do, and i might be better off
trying a different method all together in what iam trying to achive
many thanks
shaun