lets say i have this class....
#include <string.h>
class Deliveryobject
{
public:
string getItem();
string getSource();
string getDestination();
private:
string Item;
string Source ="123 South Market Street Downtown 101";
string Destination ="1599 Burbank Road Cinema 10";
};
is it possible to randomly assign "Item" any one of the following : "package, letter, or tube"?
my attempts have failed me...
The source and destination do not change for this project, but id like to randomly change the type of Item that each one is once.
Thank you in advanced!

New Topic/Question
Reply




MultiQuote






|