I'm trying to print a string the following way:
int main(){
string s("bla");
printf("%s
", s);
.......
}
but all I get is this random gibberish.
Can you please explain why?
See Question&Answers more detail:osI'm trying to print a string the following way:
int main(){
string s("bla");
printf("%s
", s);
.......
}
but all I get is this random gibberish.
Can you please explain why?
See Question&Answers more detail:os