not sure how to get a counter to go up each time a function is selected.So far the loutput is 123456789 etc and what i am trying to do is 1 then it clears and goes to 2 etc.
This is what i have got so far. Any advice ?
-
--------------------------------Code:addone()
{
int t;
t = 0;
while (t <20)
{
t++;
cout <<t;
}
return 0;
}