I just started my C++ programming class and I am having trouble. I understnd what the book says but not how to use it.
I have a program that allows the user to specify the number of lines in a tree of X's and asks if they would like to repeat. The part that I am having trouble with is that while the tree is 30 lines long, if the user enters a number larger than 30 I need to have the program default to 30 lines and then print the tree of 30 lines. If anyone could maybe point me in the right direction I would sure appreciate it. If you need more specifics let me know. Thank you soooo much.....Peace