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
All 2 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.