[try Beta version]
Not logged in

 
confusion in if statment

May 28, 2017 at 12:50pm
what does it means
i saw somewhere written if(equal)too but haven`t understand this statement too
 
if ( islower ( *sptr) ) 
May 28, 2017 at 1:54pm
Have you looked it up ?
What is your question ?

maybe what your saying is that who ever wrote that didn't document their code ?

Start here :http://www.cplusplus.com/reference/cctype/islower/
Last edited on May 28, 2017 at 2:00pm
May 28, 2017 at 4:58pm
My Question Is What If Doing here
what is it doing
i only know about if is
if(x<y)
{

}

or something like that but don`t know meaning of this statement
if(equal)
or if(islower(*sptr))
May 28, 2017 at 5:07pm
See http://www.cplusplus.com/doc/tutorial/control/

The syntax of if has:
if ( condition ) statement

Where the condition is a boolean value, either true or false.

The x < y is an expression. If you evaluate the expression, the result is a boolean value, either true or false.

The islower() is a function. If you do call it, it will compute something and return a value. A boolean value, either true or false.


The if does not know what is within the parentheses. It only cares about the boolean value that is the result of the evaluation of the condition.
Topic archived. No new replies allowed.