iam trying to extract a individual character. for example, during run time the user enters 110111 as input. can any 1 help me with the code to extract these input and store them in an array as individual elements.
Jump to Post
If it's an std::string, do mystr.c_str() to get a character array, to access an individual character, do mystr[[B]charIndex[/B]]. This is all over the web, try searching first.
All 5 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.