View Single Post
Join Date: Feb 2008
Posts: 67
Reputation: c++noobie is an unknown quantity at this point 
Solved Threads: 1
c++noobie c++noobie is offline Offline
Junior Poster in Training

Re: for and while HELP

 
0
  #5
Jan 7th, 2009
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
  1. int count;
  2. cout << "What is the count?";
  3. cin >> count;
Last edited by c++noobie; Jan 7th, 2009 at 2:09 am.
Reply With Quote