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.
plz can u explain why u wrote it like that?
like how it came to u to think about it
because you have
using namespace std;
, the compiler thinksislower
is referring to the one in<locale>
, not the one in<cctype>
. either remove theusing
, or disambiguate the function reference with the::
operator:::islower
.yuh
This comment is hidden because it contains spoiler information about the solution
This solution was actually a part of a course on programming fundamentals, so the instructor avoided using built-in functions as much as possible.
Thank you :)
Why not using
std::count
? Is this code superior in terms of performance? (I am a beginner)Also, is this solution safe, considering you are accessing elements out of the array boundaries?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Clever ;)
This comment is hidden because it contains spoiler information about the solution
Oh, yes... I see...
but the return value will be retuned as an integer. it won't convert to a char. that's not what you want the function to do
Loading more items...