#include "library.h" using namespace std; ofstream outf; void makearray(const int first, const int last, const int countdown) { if (countdown == 0) { outf << "\n "; makearray(first, last, 10); return; } outf << first * first << ", "; if (first < last) makearray(first + 1, last, countdown - 1); } int main() { outf.open("squares.txt"); outf << "const int squares[] = {\n"; makearray(0, 1000, 10); outf << "};\n"; outf.close(); }