hello all,
If i have a vector of strings,i wanna get all possible combinations of them,for example,the elements of that vector are
"hello" "world" "!"
I thought the answer should be:
However,with the code below ,i got the result like this:
what's the problem? ---------- Post updated at 08:49 AM ---------- Previous update was at 08:02 AM ----------
Ooh.i checked the definition of next_permutation.This algorithm earranges the elements in the range [first, last) into the lexicographically next greater permutation of elements.I think it means if i want to produce all the combinations,it's better to sort the vector so that i can get the very first permutation.So,when the elements are 1,2,3 and 2,1,3,they are different,Is that right?
I would suggest to have array of integers to permute. It can be initialized with A[i]=i
so no need to sort strings.
Then use permuted indexes to access strings.
I would suggest to have array of integers to permute. It can be initialized with A[i]=i
so no need to sort strings.
Then use permuted indexes to access strings.
Hi,
Wired output I am getting. Pls let me know what mistake i did on below loop script
paste profile.txt names.txt | while read i j
do
echo >> profiles.ini
echo Name=$j >> profiles.ini
echo IsRelative=1 >> profiles.ini
echo Path=Profiles/$j >> profiles.ini
done
... (3 Replies)
hi
im using the following network with hostapd on the authenticator :
Authentication server <---wired---> Authenticator(hostapd<----wired--->
User (win XP with WinRadius)
1.100 -------- 1.200 , 0.13 ----- 0.12
and this is my configurations for hostapd :
interface=eth1
driver=wired... (0 Replies)
Are we safe using the everyday wired keyboard? Although this concept is old, I had never seen an actual implementation on the matter until a few days ago. (Four ways of sniffing the electromagnetic emanations of wired keyboards currently on the market in up to 20 meters.)
Check the videos at:... (2 Replies)