User Profile

Collapse

Profile Sidebar

Collapse
jasim88
jasim88
Last Activity: Aug 22 '10, 10:05 AM
Joined: Aug 18 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Can any one tell me how to do that
    Code:
    #       for (i = 0; i <6; ++i)
    #        {
    #         for (int j = i+1; j <7; ++j)
    #          {
    #           for (int k = j+1; k <8; ++k)
    #            {
    #             for (int l = k+1; l <9; ++l)
    #              {
    #               for (int m = l+1; m <10; ++m)
    #                {
    #                  ++x;
    #                  cout<<setw(36)<<x<<")
    ...
    See more | Go to post

    Leave a comment:


  • how can i get every possible answer with one dimension array(brute force)

    Hello Every one


    I have a one dimension array and i want to check for every possible combination of unknown number.

    for example if i have a[7];

    and i want combination of three lines (not always three)

    like..
    (a[0],a[1],a[2])
    (a[0],a[1],a[3])
    (a[0],a[1],a[4])
    (a[0],a[1],a[5])
    (a[0],a[1],a[6])
    (a[0],a[2],a[3])
    (a[0],a[2],a[4])
    ...
    See more | Go to post
No activity results to display
Show More
Working...