Results 1 to 4 of 4

Thread: C++ Question

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Dec 2012
    Posts
    90
    Thanks
    5
    Thanked 20 Times in 18 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: C++ Question

    I don't know for shure, but I guess it is here to catch reader's attention, that a conversion is taking place.
    AFAIK !! doesn't have any special meaning in C++.

    EDIT: OK, I did additional research, it seems to be C idiom of clamping result to the range 0,1. So if it was not zero it becomes 1, if it was zero it stays zero, so that variable will be always either 1 or 0.
    I think it have no meaning here, just a C leftover and a point of attention.
    Last edited by lanz; 1st March 2013 at 08:45.

  2. The following user says thank you to lanz for this useful post:

    Ashkan_s (1st March 2013)

Similar Threads

  1. Question about Qt+VTK...
    By Patrick Sorcery in forum Qt Programming
    Replies: 0
    Last Post: 11th October 2010, 11:20
  2. few question about skd 3rd v1.1
    By estel in forum Newbie
    Replies: 3
    Last Post: 2nd July 2009, 07:08
  3. MVC question
    By ^NyAw^ in forum Qt Programming
    Replies: 5
    Last Post: 17th June 2009, 12:11
  4. Question
    By Dumbledore in forum Qt Programming
    Replies: 1
    Last Post: 20th October 2007, 23:12
  5. VTK question
    By magland in forum General Programming
    Replies: 0
    Last Post: 9th May 2007, 20:47

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.