I have N keywords which can be mapped as follows:
1,2,3,4----/5,6,7,8----/9,10,11,12----/--------
From the above line i should be able to map 1 to 5,2 to 6, 3 to 7, so on. I should also be able to map 1 to 9, 1 to 10, 1 to 11, 1 to 12 so on like that i should be able to map N number of combinations. I should make this generic in such a way that it should work with N number of combinations. Please tell me the logic how i can do this.
Thanks & Regards,
P.Karthik
Loading
VulpesPosted Aug 29, 2011, 8:24 AM
Here's the same code in C++/CLI:
Karthik AgarwalPosted Oct 1, 2011, 9:17 AM
VulpesPosted Oct 1, 2011, 8:43 AM
VulpesPosted Sep 30, 2011, 7:18 AM
Karthik AgarwalPosted Sep 30, 2011, 3:40 AM
This is not of equal length Vulpes and one more addition to me made for the above combination is:
the line looks like follows:
1. String^ s = " 1,2,3,4,5,6/7/9/13/XX/YY/'asas' ";
or
2. String^ s = "1,2,3,4/5,6,7,8/9,10,11,12/13,14,15,16";
or
3. String^ s = "1,2,3,4/XX/YY";
for the 1st case i should get output as combination as 1,7,9,13,XX,YY,asas and 2,7,9,13,XX,YY,asas and 3,7,9,13,XX,YY,asas and 4,7,9,13,XX,YY,asas and 4,7,9,13,XX,YY,asas and 5,7,9,13,XX,YY and 6,7,9,13,XX,YY,asas
for 2nd case output should same as we discussed in the past
for 3rd case 1,XX,YY and 2,XX,YY and 3,XX,YY and 4,XX,YY
The thing is that all are not of same length and all the things which are comma delimited should be in combination with the ones which are slash delimited.
any doubts i would be happy to clear them.
Karthik AgarwalPosted Aug 29, 2011, 9:13 AM
Great, done vulpes its working fine. Thanks for the help. Anyways your amazing.
Thanks & Regards,
Karthik
VulpesPosted Aug 29, 2011, 8:14 AM