So i have this code which makes a box, but want to make the corners +, the lengths |, and the widths - . Also want to input a number so you can draw them like cout<<"enter the length number" etc... how would i do that?
Here is what i have to make a box:
#include <iostream.h> 
#include <string.h> 
void main() 
{ 
  for(int z=1; z<=79; z++) 
  { 
    cout << ""; 
  } 
  cout << endl; 
  for(int i=1; i<=5; i++) 
  { 
    cout << ""; 
    for(int j=1; j<=77; j++) 
    { 
      cout << " "; 
    } 
    cout << "" << endl; 
  } 
  for(int y=1; y<=79; y++) 
  { 
    cout << ""; 
  } 
  cout << endl; 
}
 
     
     
    