I want format out in cout , similar to the way printf supports the functionality. I read that iomanip can be used for that purpose. But the problem is at college we have to do in the ancient Turbo C++ and I dont think it has iomanip. I'm making an SIC assembler, wants the address to be printed in 4 digits and also , since address is hex, want the digits A,B..F to be printed in higher case rather than lower. int addr 0x is the format I have used to create them. And is it okay of I dont print it in 4 digits? Or should the address be in 4 digits for an assembler? Please help
jeevsmyd -2 Junior Poster
Schol-R-LEA 1,446 Commie Mutant Traitor Featured Poster
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.