17.01.2015, 18:48
Hey,
i want to add a "*" for each letter a string has.
"SAMP" -> 4 -> "****"
I actually could do sth like:
Would that work? Or is there a better way to do this?
i want to add a "*" for each letter a string has.
"SAMP" -> 4 -> "****"
I actually could do sth like:
Код:
new str[128]; new a = 0; while(a <= strlen(inputtext)) { strcat(string,"*"); a++ }