![]() |
| ||
| create blank charaters (white spaces) I know that this is a simple one but never the less I forget how to do it. How do I create white spaces on my screen. Im writting in DEV-C++. I want my output to look something like this Name title pay Sam Uni student shit I know how to output everything on the page but just don't know how to space them out. I know that I could do it by doing a cout statment followed by inverted comma and a shit load of spaces (or as required) inverted comma, semicolon. But that will look messy. Im just chasing the simple code on how to create those spaces, my friend taught me and my text book sucks and it doesn't teach me. Cheers SAM |
| ||
| Re: create blank charaters (white spaces) If you are using cout then you can use setw() #include <iostream> |
| ||
| Re: create blank charaters (white spaces) Sweet, that was exactly what I was looking for. Thanks mate. SAM |
| All times are GMT -4. The time now is 5:38 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC