thanks brewbuck, that is a good idea. i don't think i would be able to do it quite as you wrote however, because many of the fields i will be writing aren't persistent variables, but rather...
Type: Posts; User: space_ferret
thanks brewbuck, that is a good idea. i don't think i would be able to do it quite as you wrote however, because many of the fields i will be writing aren't persistent variables, but rather...
thanks a lot laserlight.
i see the benefit of your function now (and why mine was messed up). the only thing i don't like about it is that you can't mix and match format (ie 30 doubles followed...
not sure if using the variable arg list saves me any work, so i ended up writing a function that builds the format string. in my case i wanted tab separated scientific notation:
insert
int...
the reason i don't want to put the vars into an array or structure is that, other than printing them out once, i don't have any reason to group them together. also many of the fields that will be...
i think using a loop to build the format string is a good solution for me, i will try that out, thanks.
as far as putting the vars into an array, wouldn't be good for my program. (btw it's more...
for my case, each variable i will be printing will have a unique name (ie won't be part of an array), so not sure that a loop would be appropriate, unless i'm misunderstanding how the loop would be...
Wondering if there is a built in way to multiply sections of the printf format field in cases when you want a particular part to repeat. In other words lets say you want to print 100 integers with...