Part A: Write a code segment that inputs an integer from cin, and then outputs a row of that many stars on cout.

Part B: Change the code segment to read a series of numbers from file indata, and print a row of stars on cout for each number read.

Or one of these tutorials on C++:

http://www.cprogramming.com/tutorial/lesson1.html
http://www.cprogramming.com/tutorial/lesson3.html