Please make a separate topic for issues unrelated to the initial topic - it keeps the forum nice and tidy.
As for your question:
QUESTION:-
now can a 'while ' be associated with two 'conditional' statements ? if so what is the syntax of it ?.
if so I could run loop 1 which when a change of data occurred move to Loop 2 then to loop3 then to loop 4 and start again from the beginning.
Yes, you can have a while() statement with more than one condition as such:
1 2
while (letter == 'n' || letter =='N') //using logical OR, if letter is n or N
while (number > 0 && number < 100) //using logical AND, if number is larger than 0 and smaller than 100
I hope that's what you mean - otherwise I'm afraid I'll need you to clarify your question, perhaps with some sample code. Please do let us know if you have any further questions.
A note:
GCC means GNU Compiler Collection. You call "g++", but there is also "gcc". gcc is the C compiler and g++ is the C++ compiler. If you write C, then it is more consistent to use the "gcc".
Both compilers have many options. It is usually good to have some warning options enabled; one can spot some potential problems with them.
Both compilers support more than one version of the languages. The default is usually not the latest, and it has "GNU extensions" enabled. The extensions add features that are not in strict standard. While convenient, their use can be a problem if one has to compile with some other compiler later. See option "-std=" from "man gcc".