Hey ...Now i want to compare the two things...I will explain my problem..
Now I got single items and their values
For exmple:
item: value
2 : 6
1 : 5
3 : 4
5 : 3

i want use this to swap the place for my combination
for example,
before swap,

item : value
1 2 : 3
2 3 4 : 1
1 2 5 : 1

i need to compare with the single item and value to swap the place.
let say,
2 got 6 values, but 1 got 5 values is less than 2
the first combination for 1 2 will become 2 1..but the value for the item 2 1 is remain the same.
after swap
item : values
2 1 : 3
2 3 4 : 1
2 2 5 : 1
I try many times already but still don not know how to do...hope someone can help me.

Recommended Answers

All 2 Replies

Can you please clear how you make these combination? i have gone through your previous posts but still cannot understand how you make these combination please explain it once again may be I can solve it then :)

Can you please clear how you make these combination? i have gone through your previous posts but still cannot understand how you make these combination please explain it once again may be I can solve it then :)

i upload my coding to u....

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.