ParsX.com
پذیرش پروژه از دانشجویی ... تا سازمانی 09376225339
 
   ProfileProfile   Log in to check your private messagesLog in to check your private messages  |  FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups Log inLog in   RegisterRegister 

تو رو خدا لااقل راهنمایی کنید(جایگشت)

 
Post new topic   Reply to topic    ParsX.com Forum Index -> C/C++ Programming
View previous topic :: View next topic  
Author Message
nei
مهمون يكي دو روزه


Joined: 09 Dec 2006
Posts: 31

PostPosted: Sun Feb 04, 2007 12:38 pm    Post subject: تو رو خدا لااقل راهنمایی کنید(جایگشت) Reply with quote

Exclamation

Last edited by nei on Sun Jul 15, 2007 10:49 am; edited 3 times in total
Back to top
vahid
بي تو هرگز


Joined: 26 Nov 2004
Posts: 3067
Location: Tehran

PostPosted: Sun Feb 04, 2007 1:41 pm    Post subject: Reply with quote

شما خودت برنامه ها رو بنويس اگه جاييش مشكلي داشتي بپرس . اينطوري كه نمي شه !
Back to top
nei
مهمون يكي دو روزه


Joined: 09 Dec 2006
Posts: 31

PostPosted: Sun Feb 04, 2007 6:07 pm    Post subject: Reply with quote

Exclamation

Last edited by nei on Sun Jul 15, 2007 10:49 am; edited 1 time in total
Back to top
vahid
بي تو هرگز


Joined: 26 Nov 2004
Posts: 3067
Location: Tehran

PostPosted: Tue Feb 06, 2007 2:54 pm    Post subject: Reply with quote


#include <stdio.h>
char a[]="abc"
void swap(int i,int j){
char t;
t=a[i];a[i]=a[j];a[j]=t;}
void visit(int n){
int i;
if(n==1) printf("%s\n",a);
else for(i=0;i<n;i++){
swap(i,n-1);
visit(n-1);
swap(i,n-1);
}}
void main(void){
visit(3);
}
Back to top
nei
مهمون يكي دو روزه


Joined: 09 Dec 2006
Posts: 31

PostPosted: Wed Feb 07, 2007 5:44 pm    Post subject: Reply with quote

Exclamation

Last edited by nei on Sun Jul 15, 2007 10:50 am; edited 1 time in total
Back to top
vahid
بي تو هرگز


Joined: 26 Nov 2004
Posts: 3067
Location: Tehran

PostPosted: Wed Feb 07, 2007 8:45 pm    Post subject: Reply with quote

ايشالله ديگه از اين سوالها نپرسي Wink
Back to top
Display posts from previous:   
Post new topic   Reply to topic    ParsX.com Forum Index -> C/C++ Programming All times are GMT + 3.5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum