int main(int argc, char *argv[]) { int exoid; char *filename; int cpu_word_size = 8; int io_word_size = 0; float version = 0.0; banner(); if (argc != 3) { fprintf(stderr, "ERROR: Usage is exotec2 exo_in tec_out\n\n"); exit(1); } /* Open the files... */ filename = argv[1]; exoid = ex_open(filename, EX_READ, &cpu_word_size, &io_word_size, &version); if (exoid < 0) { fprintf(stderr, "Cannot open file '%s' - exiting.\n", filename); exit(1); } /* Write the tec file... */ filename = argv[2]; tec(exoid, filename); ex_close(exoid); add_to_log(argv[0], 0.0); }
//------------------------------------------------------------------------------ void SKI::draw_lines()const { int x = data.size(); int y = data[0].size(); for (int i = 0; i < x; i++) { for (int j = 0; j < y; j++) { Rectangle rec(Point(50 * j+200+50, 30 * i+100), 50, 30); rec.draw_lines(); Text tec(Point(50 * j+210+50, 30 * i+115), data[i][j]); tec.draw_lines(); } } }