1. #include <iostream.h>
  2.  
  3. int main()
  4. {
  5. int line = 1; //line counting cariable
  6. char space[20] = " "; //Space variable
  7. char c[2] = ""; //Character to draw the box with.
  8.  
  9. //Prompts user to give "c" a vale.
  10. cout << "Please enter a single character (eg. *,%,R,7): ";
  11. cin.getline(c,2);
  12.  
  13. //Should begin the loop
  14. while (11 < line); //for some reason, this dosnt start the loop. 11 < line does start it.
  15. {
  16. if ((line = 1) || (line = 10)); //Should draw the first, or last line.
  17. {
  18. cout << "\n" << c << c << c << c << c << c << c << c << c << c << c << c << c << c << c << c << c << c << c << c;
  19. line = 1 + line;
  20. }
  21.  
  22. if ((line > 1) && (line < 10)); //Should draw all the lines in between, of the line value is between 1-10
  23. {
  24. cout << "\n" << c << space << c;
  25. line = 1 + line;
  26. }
  27. }
  28. }