SOLUTION: This might not be the right section, but here it goes: I'm taking a C++ programming class now and they just skimmed over reviewing math. What does the following mean in a pro

Algebra.Com
Question 48574: This might not be the right section, but here it goes: I'm taking a C++ programming class now and they just skimmed over reviewing math.
What does the following mean in a problem?
&&
== // I think I got this, means 'is exactly equal to'.
the ! in !(blah blah blah)
and ll (two vertical lines)
Thanks,
John

Answer by longjonsilver(2297)   (Show Source): You can put this solution on YOUR website!
&& is a Boolean AND
|| is a Boolean OR
meaning the "calculation" is either TRUE (=1) or FALSE(=0).

! is NOT

eg IF time is equal to (hours<24) and (minutes<60)
THEN ...

this is to test a time is of the correct 24 hour format.

in C++ we would do something like:
(hours<24) && (minutes<60)

so a time of 12:71 would have hours as TRUE --> 1 but minutes is FALSE --> 0 and hence a would be FALSE since (1 AND 0) is 0

Similarly, || is the OR equivalent to AND's &&

NOT:
a!=12.5 means a is not equal to 12.5

Jon.

RELATED QUESTIONS

I'm not sure if I've put this in the right section but here it goes. State whether... (answered by stanbon)
I'm not to sure if this is the right section for my question but here goes: I'm working... (answered by vleith,jim_thompson5910)
hi and thanks for taking time out to read my problem... It says: two angles are... (answered by stanbon,jim_thompson5910,checkley71)
I'm not too sure if this is the right section. But here goes. Simplify the following:... (answered by uday1435)
Have not had algebra since age 15, now 45. I am taking a human biology course, and it... (answered by ptaylor)
in a class of 147 students, 95 are taking math(M) 73 are taking science(S), and 52 are... (answered by stanbon)
not sure if this is the right section, but here it goes: A complete algebraic solution (answered by stanbon)
I might not have the topic exactly right, but I have an issue. This assignment was due... (answered by josgarithmetic,Edwin McCravy,MathLover1,ikleyn)
3(2x + 6) - 5(x + 8) = x - 22 I really really would like to know how to solve this I (answered by Gogonati)