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 423,955 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 4,130 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: 1384 | Replies: 1
Reply
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 take string give it all possible combination

  #1  
Mar 14th, 2007
write a program which take a string give it permutations and combination





  1. #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();
  23. }
Last edited by Ancient Dragon : Mar 14th, 2007 at 3:40 pm. Reason: add code tags
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2005
Location: near St Louis, Missouri, USA
Posts: 11,126
Reputation: Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of 
Rep Power: 38
Solved Threads: 929
Moderator
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Most Valuable Poster

Re: take string give it all possible combination

  #2  
Mar 14th, 2007
now that you stated your assignment problem, what are your questions?
I think it's about time we voted for senators with breasts. After all, we've been voting for boobs long enough. ~Clarie Sargent, Arizona senatorial candidate
Those who are too smart to engage in politics are punished by being governed by those who are dumber. ~Plato
Reply With Quote  
Reply

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:23 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC