Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Combinations calculation
Forum Updated to NodeBB v4.3 + New Features

Combinations calculation

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 660 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Francknos
    wrote on last edited by
    #1

    Hi, I have to calculate all possibility of combinaition.
    I have a QStringList l;
    @
    QStringList l;
    l.append("12");
    l.append("1");
    l.append("123");
    @

    And i want at end
    111
    112
    113
    211
    212
    213

    but all size a variable l can be:
    QStringList l;
    l.append("12");
    l.append("13");
    l.append("123");
    l.append("124");
    ...

    Someone can help me to find an algotihms

    thx

    1 Reply Last reply
    0
    • JeroentjehomeJ Offline
      JeroentjehomeJ Offline
      Jeroentjehome
      wrote on last edited by
      #2

      Hi,
      Isn't this more like three for loops congregated in one?
      for (x.size....)
      etc, etc?

      Greetz, Jeroen

      1 Reply Last reply
      0
      • F Offline
        F Offline
        Francknos
        wrote on last edited by
        #3

        I try with for loops but is deficient..
        all dimentions are dynamic

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved