•
•
•
•
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
![]() |
•
•
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
for example:
cat
cat
act
tac
tca
atc
cta
c Syntax (Toggle Plain Text)
c Syntax (Toggle Plain Text)
[color=#444444]#include<conio.h> #include<stdio.h> #include<iostream.h> #include<stdlib.H> void main(void) { clrscr(); char a[3] //cout<<"ent int "<<endl; > //cin<<a; atoi(a) for(a=1;a<=3;a++) { for(b=1;b<=3;b++) { for(c=1;c<=3;c++) { cout<<a<<b<<c<<endl; } } } getch(); [/color] [color=#444444]} [/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.
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.
![]() |
•
•
•
•
•
•
•
•
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: write a program which take a string give it permutations and combination
- Next Thread: Thought I had it figured out!?


Linear Mode