Hey all, is it possible to use an if statement or strcmp to compare more than one thing?
I want to compare a variable (count) to 5, 10, 15, 20, 25, 30, 35, 40, --> 100
and pause if the variable is equal to any one of them.
something like this
or perhaps use strcmp ??? if so how would you format the statement?
for (i=0; i<99; i++)
if (!strcmp ((entry[i].name), "*"))
cout << (entry[i].name) << "\n" << flush;
cout << (entry[i].street) << "\n" << flush;
cout << (entry[i].streetii) << "\n" << flush;
cout << (entry[i].postcode) << "\n\n" << flush;
if (count==5,10,15,20,25) // <------ can you do something like this?? obviously this wont work but you get the picture.
any help greatly appreciated. I am using VC++ 6.