Search Results for: String instruments
lower, and number. i would want it to pick abcab and run every permutation. then abdab , abeab , ... , abcac , abdac , ... , abcab , ... xyzyz . yes, i know this will take a large amount of time to run through all of this. this is currently what i'm using: int i,j = ; int nn = ; int ln = ; int un = ; string
l = "abcdefghijklmnopqrstuvwxyz"; string u = "zyxwvutsrqponmlkjihgfedcba"; string n = " "; do { string a = l.substr(i, ln); string b = u.substr(i, un); string c = n.substr(j, nn); string s = a + b + c; sort(s.begin(), s.end()); do { //permutation test } } while (next_permutation(s.begin(), s.end()))...
http://www.cplusplus.com/forum/general/268571/