Hey, I've got a fairly lengthy program that I'm implementing a 'silent mode' option in (i.e when the program is run, it does what it's designed to do without outputting anything to console). The most obvious way I can think of is to set a flag (short int silent) and do an
before every function that would output text. This isn't preferable as you can imagine, because that would end up being a lot of extra code that I have a feeling could be avoided.. can any of you offer up any suggestions as to how I could do this differently? Thanks in advanced =)Code:if(silent != 0)



LinkBack URL
About LinkBacks


