Results 1 to 10 of 10

Thread: two dimensional array, size determined dynamically

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2010
    Posts
    1
    Thanks
    40
    Thanked 1 Time in 1 Post

    Default Re: two dimensional array, size determined dynamically

    Thanks for sharing the code
    But i have some little comment, you don't store the second "dimension" value so if you have to iterate the array, you need to remember the size

    Anyway, i agree with what zlatomir said... you can use std::vector or QVector, these are allready tested, they don't leak, have great performance and integrate well with algorithms (stl or qt)

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

    Zlatomir (12th June 2010)

Similar Threads

  1. Multi-dimensional objects array
    By matulik in forum Newbie
    Replies: 3
    Last Post: 23rd October 2011, 02:20
  2. use QVector as 2 dimensional Array
    By umulingu in forum Qt Programming
    Replies: 3
    Last Post: 1st January 2010, 12:31
  3. How to increase size of QGraphicsView Dynamically
    By Kingofhearts_sri in forum Qt Programming
    Replies: 1
    Last Post: 23rd January 2009, 08:54
  4. Replies: 0
    Last Post: 25th June 2008, 18:36
  5. Dynamically changing QGroupBox size
    By T4ng10r in forum Qt Programming
    Replies: 5
    Last Post: 30th March 2007, 15:02

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.