User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 426,188 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,805 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser: Programming Forums
Views: 1182 | Replies: 2
Closed Thread
Join Date: Mar 2007
Posts: 13
Reputation: jnabeel is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 1
jnabeel jnabeel is offline Offline
Newbie Poster

Help write a program which take a string give it permutations and combination

  #1  
Mar 14th, 2007
write a program which take a string give it permutations and combination should not repeat any letter

  1. [color=#444444]#include<conio.h>
  2. #include<stdio.h>
  3. #include<iostream.h>
  4. #include<stdlib.H>
  5. void main(void)
  6. {
  7. clrscr();
  8. char a[3]
  9. //cout<<"ent int "<<endl;
  10. > //cin<<a;
  11. atoi(a)
  12. for(a=1;a<=3;a++)
  13. {
  14. for(b=1;b<=3;b++)
  15. {
  16. for(c=1;c<=3;c++)
  17. {
  18. cout<<a<<b<<c<<endl;
  19. }
  20. }
  21. }
  22. getch(); [/color]
  23. [color=#444444]}
  24. [/color]

for example:
cat

cat
act
tac
tca
atc
cta
Last edited by ~s.o.s~ : Mar 15th, 2007 at 11:42 am. Reason: Added code tags, learn to use them.
AddThis Social Bookmark Button
 
Join Date: Aug 2005
Posts: 4,782
Reputation: iamthwee is a glorious beacon of light iamthwee is a glorious beacon of light iamthwee is a glorious beacon of light iamthwee is a glorious beacon of light iamthwee is a glorious beacon of light 
Rep Power: 17
Solved Threads: 319
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Industrious Poster

Re: write a program which take a string give it permutations and combination

  #2  
Mar 14th, 2007
Haven't you already asked this question? By the way if you keep spamming like this you'll eventually find yourself banned.
I'm not a programmer. My attitude starts with ignorance, holds steady at conversation, and ends with a trip to the hospital. Get used to it.
 
Join Date: Mar 2007
Posts: 13
Reputation: jnabeel is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 1
jnabeel jnabeel is offline Offline
Newbie Poster

Re: write a program which take a string give it permutations and combination

  #3  
Mar 14th, 2007
some mistakes in previous thread
 
Closed Thread

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb C++ Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the C++ Forum

All times are GMT -4. The time now is 6:51 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC