How to make or start a while loop

I'm new at c++ programming and i've read my c++ book several times on while loops and how to create them and i just get more confused the more i read this technical book. Could someone please help me out with how to start or make one, i'm making a procedure for a address book with 10 address so 0-9 but i just dont know how to start it.


void some_procedure_to_store_the_address(ADDRESS& some_ADDRESS_data, ADDRESS some_array[])
{
// local variables
/* none used */
// get the address book array
// get address temp
// need to setup a loop






// search the id number field
The syntax is:

1
2
3
4
5
6
7
8
9
while( expression )
{
     statement-block;
}

// or

while( expression )
    statement;


statement or statement-block is executed repeatedly until "expression" becomes false or zero. If expression is false/zero to begin with, statement-block or statement is not executed at all.
Last edited on
id be willing to help but can you explain what exactly you are trying to do haha so your putting in an address and then what?
Topic archived. No new replies allowed.