Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Translation mistake. No more rounding needed.
And could you stop writing these comments please? If somebody doesn't know something, (s)he checks the documentation / searches for the answer on the internet / asks for help /
get the answer from correct logical assumptions at the very least, but you're not even trying.No, that's how you initialize an empty string. Do something with it inside your loop now.
there needs to be something in the "", right?
also, thanks for all thee help you've given me
Avoiding it won't help for sure ;)
i should read about the string library first, right?
std::string count = "";
and try figuring out the rest ;)This comment is hidden because it contains spoiler information about the solution
You have the same problem you had in the other kata, why don't you try using a string instead of an array of chars?
This comment is hidden because it contains spoiler information about the solution
.
Try the first results of googling
c++ std::string
.I am using c++ and I don't get how to make the answer round to the nearest decimal.
where do I read up on the std::string library?
You're not null terminating the char[] properly, so your answer includes trailing garbage. Either initialize the whole array to null chars, insert a null char at the correct index, or (best option) replace the char[] with a std::string and read up on the methods for that class. As FArekkusu said, you're tackling this like a C coder rather than a C++ coder. :-)
Just write it in C++, because this is C code.
Loading more items...