The first thing you need to do is get the number of lines to print, using cin. First, create a variable to hold the number of lines, then read it in from the user.
An example would be
int count;
cout << "What is the count?";
cin >> count;
Last edited by c++noobie; Jan 7th, 2009 at 2:09 am.