Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » bug? : operator "!" for "bool"
bug? : operator "!" for "bool" [message #11038] Thu, 16 August 2007 08:26 Go to next message
xws001 is currently offline  xws001
Messages: 8
Registered: August 2007
Location: Russia
Promising Member
Hi!
I have small experience in C++, but ...
class ABC: public TopWindow
{
    bool blink;
    void ChangeBilnk1();
    void ChangeBilnk2();
   ...
}

// ABC.blink initalized with "true" - !!! I was wrong !!!

ABC::ChangeBlink1()
{
 blink = !blink;  // 'blink' NOT change value;
}

ABC::ChangeBlink2()
{
 blink = (blink ? false : true ); // 'blink' change value
}


Is it a bug or Am I wrong?

[Updated on: Thu, 16 August 2007 10:16]

Report message to a moderator

Re: bug? : operator "!" for "bool" [message #11042 is a reply to message #11038] Thu, 16 August 2007 10:14 Go to previous message
xws001 is currently offline  xws001
Messages: 8
Registered: August 2007
Location: Russia
Promising Member
I'm Sorry!
variable "blink" was not been initalized.
After setting "blink = true", bug is disappear.

Sorry.
Previous Topic: geom package?
Next Topic: bug in DbfView example
Goto Forum:
  


Current Time: Fri Apr 19 03:54:07 CEST 2024

Total time taken to generate the page: 0.04406 seconds