May be after converting string to char array null-terminate '\0' is absent at the end of char array
There might be something wrong...
This is not how you raise an issue. You need to provide clear logs, inputs, outputs... In brief, you must prove there is an issue, not make blur assumptions. Most issues raised are mistakes of OP.
See there: https://docs.codewars.com/training/troubleshooting/
I tried this and it didn't work, why would adding null's to a string solve this issue anyway?
I cout my output before returning the string and it's identical to the answer, but throws an error for some reason.
Thanks a lot!!
Thanks a lot! It helps me very much!
This comment is hidden because it contains spoiler information about the solution
And you need to add exactly that number of '\0' chars.
Thanks for the workaround wizzerd!
wizzerd
Thanks wizzerd, that does the trick.
Thanks for your posts!
Loading collection data...
May be after converting string to char array null-terminate '\0' is absent at the end of char array
This is not how you raise an issue. You need to provide clear logs, inputs, outputs... In brief, you must prove there is an issue, not make blur assumptions. Most issues raised are mistakes of OP.
See there: https://docs.codewars.com/training/troubleshooting/
I tried this and it didn't work, why would adding null's to a string solve this issue anyway?
I cout my output before returning the string and it's identical to the answer, but throws an error for some reason.
Thanks a lot!!
Thanks a lot! It helps me very much!
This comment is hidden because it contains spoiler information about the solution
And you need to add exactly that number of '\0' chars.
This comment is hidden because it contains spoiler information about the solution
Thanks for the workaround
wizzerd
!Thanks wizzerd, that does the trick.
Thanks for your posts!