Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
C++ program
Name: buss123r Date: January 20, 2006 at 19:36:37 Pacific OS: Windows xp CPU/Ram: Amd anthlon 2800+ 512 mb
Comment:
ok, im trying to write a very complex program, well perhaps not complex but time consuming, anyway, i am trying to write a program that will take every symbol, number, and letter that I enter, and make it combine them in every combination until it cant combine anymore without repeating itself, how would i go about doing this? Thank you
Name: wizard-fred Date: January 20, 2006 at 20:56:47 Pacific
Reply:
Permutations and Combinations. Specifically the combination part. A problem arises if you enter the same item multiple times.
0
Response Number 2
Name: Mechanix2Go Date: January 20, 2006 at 23:24:42 Pacific
Reply:
You need to get more clear. Probably with yourself as well as us.
By combination, do you mean arranging in a 'string' like:
given
abc
strings
abc cab acb cba ...
Or do you mean something else?
As per wizard-fred, how about duplicate given chars?
If at first you don't succeed, you're about average.
M2
0
Response Number 3
Name: chin2 Date: January 21, 2006 at 04:54:31 Pacific
Reply:
I have program similar to the one you are developing. If you need it contact me at wasif.shaikh@gmail.com
0
Response Number 4
Name: wizard-fred Date: January 21, 2006 at 08:47:51 Pacific
Reply:
Finding/making combinations is relatively easy. Evaluating them (for example, hands in a card game like poker) is much more difficult. My preference is using arrays.
Summary: Hello all, i'm having a bit of trouble with my basic C program. I'm not all to good with C as it stands anyway, so managed to find this place. I've been asked to make a program that is a little like a...