char LINE[] ="************************************************";
template<int N, int L> class PrintLine { public: enum{ C1 = (N /2- L >0) ? N /2- L : L - N /2, C = N - C1 *2, B = N + C - C /2, O =sizeof(LINE) - C -1 };
staticvoid Print() {
printf("%*s\n", B, LINE + O);
PrintLine<N, L +1>::Print();
}
};
template<int N> class PrintLine<N, N> { public: staticvoid Print() {}
};