Angus Leeming <[EMAIL PROTECTED]> writes: | Yes, true. I believe I went for fixed sizes to ensure that the actual gs | output filename was the same as that expected by lyx.
then just prepend the string with '0's. #include <iostream> #include <iomanip> using namespace std; int main() { int i = 123; int j = 12; int k = 34523; cout << setfill('0') << setw(10) << i << endl; cout << setfill('0') << setw(10) << j << endl; cout << setfill('0') << setw(10) << k << endl; } but please tell me again what the problem really was... -- Lgb