I want to have an array of strings, and something return a random string from that array, so something like this:
char* initialblow[] = {"hey", "hi", "hello"}; // this might be bigger or smaller
char* secondblow[] = {"Bob", "Phil", "Sue"};
int length1 = sizeof(initialblow)/sizeof(char);
int length2 = sizeof(secondblow)/sizeof(char);
...
return initialblow[rand() % length1] + ", " + secondblow[rand() % length2]
Am I messing something really obvious up? I haven't touched C for a long time and can't figure out the issue.