I need to display something that looks like:
/
-
/
/
-
/
/
/
-
I currently have the following which does not print the slashes properly.
for (int i = 1; i <= numberOfDolls; i++) {
for(int j = 1; j <= i; j++)
cout << setw(numberOfDolls) << '/' << endl;
cout << "-" << endl;
}
I was thinking of using setw() to increment the slashes. Is this possible?