I want this program to return a string. I know it is impossible to have string RandomColorGenerator(int randnum, vector<int> &randcolorvect), but I was wondering what I could use instead
string RandomColorGenerator(int randnum)
{
switch(randnum)
{
case 1: return"red";
case 2: return"blue";
case 3: return"green";
case 4: return"yellow";
case 5: return"pink";
case 6: return"purple";
case 7: return"lightblue";
case 8: return"lime";
case 9: return"mahogany";
case 10: return"aqua";
case 11: return"violet";
case 12: return"torquoise";
case 13: return"plum";
case 14: return"black";
case 15: return"white";
case 16: return"brown";
case 17: return"grey";
case 18: return"teal";
case 19: return"lightgreen";
case 20: return"fire";
case 21: return"darkblue";
case 22: return"darkgreen";
case 23: return"orange";
case 24: return"peach";
default: return"";
}
}