CCCPaste
#include <iostream>
using namespace std;
void lay(int height, int width, int length, int depth );
void brick(int height, int width);
void head();
int main(){
int width=1;
int height=1;
int length=1;
int depth=1;
//just make bricks red in strig output, and stoke width 1 for now
cout << " input brick width " ;
cin >> width;
cout << "\n input brick height ";
cin >> height;
cout << "\n input how many bricks long ";
cin >> length;
cout << " input depth of bricks ";
cin >> depth;
head();
lay( height, width, length, depth); //output da bricks


return 0;
}

void head(){
cout << "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n";
cout << "<svg\n ";
cout << " xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\n";
cout << " xmlns:cc=\"http://creativecommons.org/ns#\"\n";
cout <<" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"\n";
cout << " xmlns:svg=\"http://www.w3.org/2000/svg\"\n";
cout << " xmlns=\"http://www.w3.org/2000/svg\"\n";
cout << " id=\"svg8\"\n";
cout << " version=\"1.1\"\n";
cout << " viewBox=\"0 0 300 300\"\n";
cout << " height=\"100%\"\n";
cout << " width=\"100%\">\n";
}

void lay(int height, int width, int length, int depth ){
float halfBrick = width/2;
//x+=x for n length
//y+=y for n depth
//for every other line, insert off
int x=0;
int y=0;
/*
* <rect
y="0.5"
x="0.5"
height="20.338984"
width="64.406776"
id="rect817"
style="fill:#000000; fill-opacity:0; stroke:#ff0000; stroke-width:1; stroke-miterlimit:4; stroke-dasharray:none; stroke-opacity:1"
* /> // end rectangle
* */

for(;x<length; x+=width){ //length
cout << "<rect"<< endl;
cout << "\"y="<< y << "\""<< endl;
cout << "\"x="<< x << "\""<< endl;
cout << "height=\"" << height <<"\"" << endl;
cout << "width=\""<< width<< "\""<< endl;
cout << "id=\"rect817\""<< endl;
cout << "style=\"fill:#000000; fill-opacity:0; stroke:#ff0000; stroke-width:1; stroke-miterlimit:4; stroke-dasharray:none; stroke-opacity:1\"" << endl ;
cout << "/>"<< endl; //end rectangle

}
cout << "</svg>" << endl; //end svg
}