spacing

is there any code that dictates how many spaces i want in a program instead of manually pressing spacebar on your code?

example:
---***
--*****
-*******
-*******
--*****
---***
something like that if i want to do i think would be easier with just telling my program how many spaces i want it to have before each line rather then spacing them all out...i dont know if i sound impractical but just thought id askk,, thanks in advance

(ugh...for some strange reason that thingy looks right in the edit but very bad once posted...hope you get the idea though)
std::string( N, ' ' );

makes a string of N spaces.

oh thank you i will be getting to learning strings today or tommorow. (but i have seen something about em....) thanks again!
uhh so i am trying it now and i was wondering if i am correct in saying that N is a variable or is it something else?

[edit] yah im not sure how to work this code in...sigh
Last edited on
Topic archived. No new replies allowed.