I am very new to C programming. Can I make an array of strings so I can display data, line-by-line, pausing between each page? The only alternative is forcing the user to scroll up in the console if they wish to view previous pages of data.
I want my code to look somewhat like this:
1 2 3 4 5 6 7 8 9
for (currentpage=0; currentpage>maxlines/20; currentpage++)
{
for (currentline=page*20; currentline>page*20+20; currentline++)
{
cout<<datastring[currentline]<<"\n"
}
cout<<"Enter 1 for next page\n"
cin>>next
}