I am doing some training exercises to get used to C++ on Windows as a new programmer.
Take input from the user of type String and form:
(any word) || (any word || <any word || any word> || (any word> etc.
Warn the user in real-time, if the:
() or/and <> Are closed before the input ends.
For example, if the user types:
(I am ok
I have to warn him at that time that a parenthesis has been opened but hasn't yet been closed.
Since I am a beginner I am a bit lost about how to proceed, I wouldn't prefer a ready solution but rather a way to proceed.
- I use code blocks IDE and GCC compiler.
Thanks in advance.