Hello everybody!
I am here to ask you some help one more time.I have a file woch contains string.This string is "separated" in substrings which represent an object(each substring).I have a method to read those objects and another that does some operations on them.All I want is to find a way to show which object is going to be read next.
Ask anything you cant understand.
Thanks in advance.
I would put all the substrings into a vector or other std:: container, then just use an iterator to get the next one. (Just be careful of modifying the container, it will invalidate your iterators)
Yes,I have thought this kind of solution but I cant use vector,only array.If I can find a way to find its size it will be great.But substrings dont have a constant number of chars:s
Do you have some other ideas?