I am trying to create a tab function so that when outputing to a printer I can specify which column to go to. A function like this would simplify things greatly. I'm not exactly sure where to start? Any ideas? Or is there something out there like this already?
setw() is kindof a hassle. I would like to write a function or find one that i can just output some data and then tab over to column 15 then when I output that field, tab over to column 35 and so forth without all the trouble of setting setw(). Is there anyway to do this? I had been able to work this out kindof by converting numerical data to text and getting the string length. But it only works when I'm outputting variables, If I want to hardcode any special characters it throws my count off. Is there any what to get from the output device (the printer) what column it's at and have it go out to next column specified? Sort of like the tab statement in QBasic?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.