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,950 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,159 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: 1347 | Replies: 1
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. <LI class=li1>#include<conio.h>
    <LI class=li1>#include<stdio.h>
    <LI class=li1>#include<iostream.h>
    <LI class=li1>#include<stdlib.H>
    <LI class=li2>void main(void)
    <LI class=li1>{
    <LI class=li1> clrscr();
    <LI class=li1> char a[3]
    <LI class=li1> //cout<<"ent int "<<endl;
    <LI class=li2> //cin<<a;
    <LI class=li1> atoi(a)
    <LI class=li1> for(a=1;a<=3;a++)
    <LI class=li1> {
    <LI class=li1> for(b=1;b<=3;b++)
    <LI class=li2> {
    <LI class=li1> for(c=1;c<=3;c++)
    <LI class=li1> {
    <LI class=li1> cout<<a<<b<<c<<endl;
    <LI class=li1> }
    <LI class=li2> }
    <LI class=li1> }
    <LI class=li1>getch();
  2. }
for example:
cat

cat
act
tac
tca
atc
cta
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
You already asked this question before.
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.
 
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:18 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC