Computing.Net > Forums > Programming > C++ program

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

Reply to Message Icon

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



Sponsored Link
Ads by Google

Response Number 1
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.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: C++ program

c++ programming for novell www.computing.net/answers/programming/c-programming-for-novell/2525.html

Bike Trader C program www.computing.net/answers/programming/bike-trader-c-program/6557.html

C++ Programming Website www.computing.net/answers/programming/c-programming-website/4752.html