cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Negation
Negation
Feb 19, 2011 at 7:08pm UTC
personak
(44)
How do you negate a Boolean value:
1
2
3
bool
a, b; a =
false
; b = negate(a);
What would the function
negate()
be?
Feb 19, 2011 at 7:20pm UTC
rocketboy9000
(562)
an exclamation mark.
Feb 19, 2011 at 8:43pm UTC
ne555
(10692)
b = not a;
Feb 20, 2011 at 2:04am UTC
Danny Toledo
(469)
Why not just declare b as true, or am I missing something?
Feb 20, 2011 at 2:05am UTC
Zhuge
(4664)
The point of the question was to figure out how to negate a boolean value. The example was just to illustrate the question.
Topic archived. No new replies allowed.