|
-
Aug 28th, 2002, 09:17 PM
#1
Thread Starter
Addicted Member
How do convert string to char?
Hi,
I have a function that requires a char. I like working with STL strings because they seem a bit friendlier to me. I would like to do something like this.
string s;
s="Hello";
// ...convert string s to char myChar here..
myChar[]= ????
myFunction(int a, int b, int c, char myChar);
I hope I have explained this well enough.
Regards,
ChuckB
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
|