Imagine I will be reading an XML file. Like the lines used in the example below. I need to capture the value of x and y for each line. If possible, avoiding an iterator. Can you please give me a hint on how to solve this (if possible without an iterator).
there are a lot of ways to do it avoiding iterators; you can append a '\0' and use strstr on a string variable, which is a lot like find without the iterators.
search for x=, search again for your \" pair and extract between the pair, that is your number.
its probably doable with regx too, but I do not use those enough and it takes me a bit to nail down the symbols needed to make it do what I want. you are on your own there but its certainly doable.