|
-
Apr 30th, 2000, 03:01 AM
#1
Thread Starter
Dazed Member
Does anyone know how i can have a funcion return a string?
char wintest(int x1,int y)
{
if ((count1==1)||(count1 == 3) || (count1 == 5) || (count1 ==7) || (count1 == 9))
return win;
}
// this is declared before the main
char win []= {
"Player 1 is the winner",
};
so as far as i can tell win should hold the string but char only returns one character. so basically im stuck. any suggestions?
thanxxxxx
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|