#include int main(int argc, char* argv[]) { int width = 10, height = 10; if (argc > 1) width = atoi(argv[1]); if (argc > 2) height = atoi(argv[2]); if (width <= 0) width = 1; if (height <= 0) height = 1; for (int i = 0; i < height; ++i) { for (int j = 0; j < width; ++j) if (i == 0 && j == 1) std::cout << "S"; else if (i == height-1 && j == width-2) std::cout << "E"; else std::cout << "+"; std::cout << std::endl; } }