cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Testing for a character in a string
Testing for a character in a string
Feb 13, 2018 at 8:34pm UTC
ComputerG33k
(3)
I just had one quick question, is it possible to test for one character in a string? Example of what I mean, test for '-' in the string amount(-22.26) and if yes store '-' in variable "minus".
Feb 13, 2018 at 9:26pm UTC
cire
(8284)
https://stackoverflow.com/questions/3300743/i-want-to-see-if-a-character-is-present-in-a-string
Yes. It's possible.
Yes, you may find search engines useful in your programming endeavors.
Yes, documentation sometimes contains useful information.
Topic archived. No new replies allowed.