Sowas wie next_permutation in C#?
-
Hi,
ich möchte alle Kombinationen eines Strings "abc" finden.
z.B.
acb
bac
cba
usw...in c++ soll es ganz einfach gehen, hat CStroll mir gesagt.
string text = "abc"; while(next_permutaion(text.begin(),text.end())) cout<<text<<endl;
Geht das in C# genau so einfach?
Danke Leute
-
Servus,
schau mal dort: http://www.c-plusplus.net/forum/viewtopic-var-t-is-178286.html
Ein bisschen Knobel musst du schon selbst...mfg
Hellsgore