Results 1 to 12 of 12

Thread: "do while problem"

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2010
    Posts
    31
    Thanks
    1
    Thanked 3 Times in 3 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: "do while problem"

    Quote Originally Posted by Hardstyle View Post
    dude i know that in c++ array like all programing languages starts with 0
    So then why are you starting your arrays at 1?

    Quote Originally Posted by Hardstyle View Post
    and SneakyPeterson's is right about the "2)"
    the "3)" is why i use that loop ...if the aux2 and aux3 gets a value that is allrdy 1 it will redo the random thing until it will find a value that is 0....
    can u please stop answering newbish and give answers only if you have any idea about the problem?
    While Archimedes was incorrect about the function of the loop, he did correctly diagnose your original problem of starting your array at the wrong point and thus, missing several int's when counting the number of set 1's. Please note that because you start at 1 in your first array as well, you never completely initialize your array properly. Your last comments seem a bit hostile to people who are trying to help you solve your problem and in my opinion, have done so at this point.

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

    Hardstyle (18th June 2010)

Similar Threads

  1. Replies: 1
    Last Post: 7th April 2010, 21:46
  2. Replies: 3
    Last Post: 15th February 2010, 17:27
  3. Replies: 3
    Last Post: 8th July 2008, 19:37
  4. Translation QFileDialog standart buttons ("Open"/"Save"/"Cancel")
    By victor.yacovlev in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2008, 19:05
  5. QFile Problem~ "Unknow error" in "open(QIODevice::ReadWrite)"
    By fengtian.we in forum Qt Programming
    Replies: 3
    Last Post: 23rd May 2007, 15:58

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.