what happens if i have a char array [20]
and i want to print only the first 3 letters of the string
what c++ function would i use?
the idea is that i have a ssn [10]
and i want to display it as 1234-56-789
i could use C functions but i dont want to do that
and i could print them one char at a time in a for loop but i am wondering if there are c++ functions for that
something like setprecision (though that is for numbers)
u get the idea
cheers
![]()



LinkBack URL
About LinkBacks




I used to be an adventurer like you... then I took an arrow to the knee.