•
•
•
•
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
![]() |
•
•
Join Date: Mar 2007
Posts: 13
Reputation:
Rep Power: 2
Solved Threads: 1
write a program which take a string give it permutations and combination should not repeat any letter
cat
cat
act
tac
tca
atc
cta
- <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(); - }
cat
cat
act
tac
tca
atc
cta
![]() |
•
•
•
•
•
•
•
•
DaniWeb C++ Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- help with c program to count # of words in a string (C)
- write a program which take a string give it permutations and combination (C++)
- take string give it all possible combination (C++)
- please someone help me urgent (C++)
- How can I write this program. (C++)
Other Threads in the C++ Forum
- Previous Thread: take string give it all possible combination
- Next Thread: write a program which take a string give it permutations and combination


Linear Mode