¡@

Home 

c++ Programming Glossary: streammanip

Custom stream manipulator for streaming integers in any base

http://stackoverflow.com/questions/6478745/custom-stream-manipulator-for-streaming-integers-in-any-base

iomanip #include iostream #include locale namespace StreamManip Define a base manipulator type its what the built in stream.. val const return doPutHelper out str fill val namespace StreamManip int main Create a local the uses our custom num_put std locale.. uses our custom num_put std locale myLocale std locale new StreamManip BaseNumPut Set our locacle to the global one used by default..