Hi,
is there anything better than ? Because it fails if the size of some table entrys differ:
Code:
#include <iostream>
#include <map>
int main()
{
std::map<const char*, int> map;
map["a"] = 1;
map["bbbbbbbbbbbb"] = 2;
map["ccccc"] = 3;
for (std::map<const char*, int>::const_iterator citer = map.begin(); citer!=map.end(); ++citer)
{
std::cout << citer->first << "\t\t\t\t\t" << citer->second << "\n";
}
produces:
Code:
ccccc 3
bbbbbbbbbbbb 2
a 1
Only ways I see is to take the current size of the field into account to determine the number of \t needed.
Thank you!