-/*-------------------------------------------------------------------------
-
- Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
- l'Image). All rights reserved. See Doc/License.txt or
- http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
-
- This software is distributed WITHOUT ANY WARRANTY; without even
- the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- PURPOSE. See the above copyright notices for more information.
-
--------------------------------------------------------------------------*/
-
#ifndef CLITKCOMMON_CXX
#define CLITKCOMMON_CXX
-
/**
-------------------------------------------------
* @file clitkCommon.cxx
previous = rounded;
std::ostringstream oss;
- oss << rounded << '%';
+ oss << std::setw(4) << rounded << '%';
std::cout << oss.str() << std::flush;
- for (int i=0; i<oss.str().length(); ++i)
+ for (unsigned int i=0; i<oss.str().length(); ++i)
std::cout << "\b" << std::flush;
}
//------------------------------------------------------------------