By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,385 Members | 1,763 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,385 IT Pros & Developers. It's quick & easy.

Getting certain item from a character array

P: n/a
I have a character array that I am using to get the user's input. I only
want to get out of the array grouping symbols (,),{or}. Is there a way for
me to do this? I am currently trying to use an IF statement.
Dec 11 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Nevermind, I just remembered about case/switch structures.

"deanfamily" <de********@verizon.net> wrote in message
news:dc2nf.2776$Jz6.752@trnddc06...
I have a character array that I am using to get the user's input. I only
want to get out of the array grouping symbols (,),{or}. Is there a way for
me to do this? I am currently trying to use an IF statement.

Dec 11 '05 #2

P: n/a

deanfamily wrote:
Nevermind, I just remembered about case/switch structures.


You can do it that way or you can use std::string's find functionality.
Of course you would have to use std::string instead of char*. On the
other hand, some of the functions in <algorithm> should be helpful with
char*.

Dec 12 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.