تبلیغات
پروژه های رایگان برنامه نویسی و آموزش زبان C++ و C# - سورس مرتب سازی حبابی ( Bubble sort )
 
برنامه بدون خطا رویاست Program is impossible without an error
پروژه های رایگان برنامه نویسی و آموزش زبان C++ و C#
صفحه نخست         تماس با مدیر         پست الکترونیک        RSS         ATOM
 
 
چهارشنبه 22 مهر 1388 :: نویسنده : سجاد سلطانی

این سورس یک عدد گرفته و به تعداد همان عدد از ورودی دریافت می کند و آنها را با روش Bubble sort  مرتب می کند .

 

 

#include<stdio.h>
#include<conio.h>
#include<stdlib.h>

//--------------------------------------------------------------------------
void read_list(int a[],int n){
 int i;
 for(i=0;i<n;i++){
  printf("\n\n\t ENTER THE ELEMENT [%d] :: ",i);
  scanf("%d",&a[i]);
 }
}
//--------------------------------------------------------------------------
void print_list(int a[],int n){
 int i;
 for(i=0;i<n;i++)
   printf("\t%d",a[i]);
}
//--------------------------------------------------------------------------
void bubble_sort(int a[],int n){
 int i,j,temp;
 for(i=0;i<n-1;i++){
  for(j=0;j<n-1;j++)
   if(a[j]>a[j+1]){
    temp=a[j];
    a[j]=a[j+1];
    a[j+1]=temp;
   }
  printf("\n\n\t PASS %d :: ",i);
  print_list(a,n);
 }
}
//--------------------------------------------------------------------------
void main(){
 int a[20],n;
 clrscr();
 printf("\n\n\t ENTER THE ARRAY LENGTH :: ");
 scanf("%d",&n);

 read_list(a,n);

 printf("\n\n\t THE ARRAY ELEMENTS ARE AS FOLLOWS :: ");
 print_list(a,n);

 bubble_sort(a,n);

 printf("\n\n\t THE SORTED LIST IS :: ");
 print_list(a,n);
 getch();
}
//--------------------------------------------------------------------------





نوع مطلب : پروژه های برنامه نویسی ++C، 
برچسب ها :
لینک های مرتبط :


چهارشنبه 14 آذر 1397 09:50 بعد از ظهر

You actually said that effectively!
cheap cialis price cialis per pill click now buy cialis brand acquisto online cialis cialis daily cialis 20mg cialis 05 preis cialis 20mg schweiz cialis generico in farmacia cialis price in bangalore
سه شنبه 13 آذر 1397 07:36 بعد از ظهر

Awesome posts, Regards!
cialis 20mg we choice cialis pfizer india cialis coupon cialis generic availability overnight cialis tadalafil cialis en mexico precio cialis patent expiration cialis et insomni precios de cialis generico cialis per paypa
سه شنبه 13 آذر 1397 08:35 قبل از ظهر

Truly plenty of awesome data!
prix de cialis usa cialis online cialis farmacias guadalajara can i take cialis and ecstasy cialis for sale buy cialis cheap 10 mg cialis generika cialis reviews costo in farmacia cialis cialis 5 mg effetti collateral
دوشنبه 12 آذر 1397 08:42 بعد از ظهر

Thanks! I value it!
buy online cialis 5mg cialis mit grapefruitsaft cialis in sconto cialis 20 mg cost cialis reviews side effects of cialis cost of cialis per pill how much does a cialis cost cialis ahumada cialis australian price
دوشنبه 12 آذر 1397 08:12 قبل از ظهر

Awesome posts. Thank you!
cialis daily reviews cialis canadian drugs generic cialis 20mg tablets cialis pills in singapore cialis generika in deutschland kaufen il cialis quanto costa purchasing cialis on the internet cialis generique 5 mg buy generic cialis online prescriptions cialis
یکشنبه 11 آذر 1397 07:38 قبل از ظهر

Great tips. Thanks!
deutschland cialis online sublingual cialis online buy original cialis cialis preise schweiz cialis 5 mg funziona rezeptfrei cialis apotheke click here to buy cialis cialis tablets australia online prescriptions cialis cialis from canada
شنبه 10 آذر 1397 08:26 بعد از ظهر

Nicely put, Thanks.
side effects for cialis cialis taglich il cialis quanto costa enter site 20 mg cialis cost costo in farmacia cialis cialis pills price each cialis 100mg suppliers bulk cialis cialis billig when will generic cialis be available
شنبه 10 آذر 1397 07:18 قبل از ظهر

Info clearly applied.!
cialis prices in england cialis canada on line cialis pas cher paris cialis canada cialis efficacit viagra or cialis buy cialis sample pack buy cialis online legal cialis generika wow cialis 20
جمعه 9 آذر 1397 07:59 بعد از ظهر

Nicely put, Thank you!
buy cialis sample pack we use it cialis online store cialis reviews prix de cialis cialis alternative price cialis wal mart pharmacy viagra vs cialis we recommend cialis best buy cialis generika 200 cialis coupon
چهارشنبه 7 آذر 1397 08:39 بعد از ظهر

Thanks! Good information.
generico cialis mexico are there generic cialis 5 mg cialis coupon printable look here cialis cheap canada cialis efficacit costo in farmacia cialis free generic cialis deutschland cialis online we recommend cialis best buy cialis reviews
چهارشنبه 7 آذر 1397 08:53 قبل از ظهر

You revealed that well!
cialis daily reviews cialis 10mg prix pharmaci generic cialis at the pharmacy cialis rezeptfrei sterreich cialis wir preise rezeptfrei cialis apotheke generic cialis review uk cialis rezeptfrei sterreich cialis diario compra cialis italia gratis
چهارشنبه 11 مهر 1397 11:17 قبل از ظهر

Great data. With thanks.
we like it cialis price order a sample of cialis cialis bula cialis online holland cialis canada cialis generisches kanada cialis flussig dosagem ideal cialis cialis authentique suisse ou acheter du cialis pas cher
دوشنبه 9 مهر 1397 09:07 قبل از ظهر

Cheers. An abundance of content!

cialis et insomni warnings for cialis prices on cialis 10 mg generic cialis 20mg uk compare prices cialis uk cialis lowest price cialis prezzo al pubblico cialis taglich interactions for cialis 200 cialis coupon
چهارشنبه 28 شهریور 1397 06:11 قبل از ظهر

Amazing loads of very good knowledge!
buying cialis on internet cialis et insomni cialis pills price each cialis pas cher paris prices for cialis 50mg achat cialis en itali cialis manufacturer coupon can i take cialis and ecstasy cialis 05 preis cialis 20mg schweiz
سه شنبه 13 شهریور 1397 03:22 بعد از ظهر

This is nicely expressed. .
buy viagra legally sildenafil generic uk how buy viagra online buy online viagra viagra professional how to buy generic viagra online buy viagra uk pharmacy buying generic viagra viagra buy online buy viagra professional
دوشنبه 12 شهریور 1397 12:59 بعد از ظهر

Excellent tips. Thank you.
cialis tablets for sale generico cialis mexico we recommend cheapest cialis buy cialis cheap 10 mg cialis free trial callus generic cialis at walmart buy online cialis 5mg order a sample of cialis pastillas cialis y alcoho
یکشنبه 11 شهریور 1397 08:41 بعد از ظهر

Nicely put, Appreciate it.
cialis alternative cialis from canada buy cialis online cheapest chinese cialis 50 mg acquistare cialis internet cialis 20 mg buy cialis sample pack cialis prezzo al pubblico cialis kaufen generic cialis soft gels
سه شنبه 23 مرداد 1397 08:24 قبل از ظهر

Regards. Good information!
safe buy viagra online where can i buy viagra online pharmacy viagra prices buy generic viagra online usa can you buy viagra at the store is buying viagra online safe buy viagra tablets how do i buy viagra is sildenafil generic online viagra pharmacy
سه شنبه 23 مرداد 1397 12:01 قبل از ظهر

Terrific facts, Many thanks!
interactions for cialis buying cialis on internet cialis generico online free cialis cialis pills boards cialis 20mg preis cf estudios de cialis genricos generic cialis tadalafil venta de cialis canada cialis tablets
دوشنبه 7 خرداد 1397 01:12 بعد از ظهر

Helpful info. Thank you!
cialis 20 mg cut in half cialis great britain cialis ahumada how does cialis work effetti del cialis low cost cialis 20mg precios de cialis generico cialis dosage amounts cialis bula cilas
چهارشنبه 5 اردیبهشت 1397 08:21 بعد از ظهر

Really tons of great advice.
viagra to buy uk where can i buy the cheapest viagra buy real viagra online cheap buy generic sildenafil online cheap online viagra buy generic viagra online buy viagra pills online where yo buy viagra viagra online pharmacy viagra buy viagra buy viagra online canada
یکشنبه 5 فروردین 1397 05:13 قبل از ظهر

Many thanks. I appreciate this!
callus online prescriptions cialis enter site natural cialis cialis for daily use we like it cialis price cialis australian price buy cialis cialis purchasing ou trouver cialis sur le net cialis online napol
جمعه 3 فروردین 1397 12:02 قبل از ظهر

Great material. Kudos!
ou acheter du cialis pas cher buying cialis on internet cialis diario compra tadalafil we recommend cheapest cialis 200 cialis coupon cialis pills buy name brand cialis on line acheter du cialis a geneve generic cialis review uk
جمعه 13 مرداد 1396 10:15 قبل از ظهر
I constantly spent my half an hour to read this webpage's posts daily along with a mug of coffee.
سه شنبه 10 مرداد 1396 03:12 بعد از ظهر
After I originally left a comment I seem to have clicked the -Notify
me when new comments are added- checkbox and
now each time a comment is added I recieve 4 emails
with the exact same comment. Perhaps there is a way you
can remove me from that service? Cheers!
جمعه 16 تیر 1396 06:46 بعد از ظهر
What i do not understood is actually how you are no longer really much more neatly-favored than you
may be right now. You are so intelligent. You recognize therefore significantly on the subject of this topic, produced me individually consider it from numerous
various angles. Its like women and men aren't involved unless it is something to do with Woman gaga!
Your personal stuffs outstanding. All the time maintain it up!
سه شنبه 2 خرداد 1396 03:12 بعد از ظهر
Someone essentially help to make significantly posts I
might state. That is the very first time I frequented
your web page and to this point? I amazed with the analysis you made
to make this particular put up incredible.
Great job!
سه شنبه 26 اردیبهشت 1396 12:05 قبل از ظهر
An outstanding share! I've just forwarded this onto a co-worker who was conducting
a little homework on this. And he in fact bought me dinner because I discovered it for him...

lol. So allow me to reword this.... Thank YOU for the meal!!
But yeah, thanks for spending time to talk about
this matter here on your web site.
دوشنبه 25 اردیبهشت 1396 05:39 قبل از ظهر
It's appropriate time to make some plans for the future and
it's time to be happy. I've read this post and if I could I wish to suggest you few interesting things
or advice. Maybe you can write next articles referring to this article.
I wish to read even more things about it!
پنجشنبه 21 اردیبهشت 1396 07:02 قبل از ظهر
Thanks for finally talking about >پروژه های رایگان برنامه نویسی
و آموزش زبان C++ و C# - سورس مرتب سازی حبابی (
Bubble sort ) <Liked it!
 
لبخندناراحتچشمک
نیشخندبغلسوال
قلبخجالتزبان
ماچتعجبعصبانی
عینکشیطانگریه
خندهقهقههخداحافظ
سبزقهرهورا
دستگلتفکر


نمایش نظرات 1 تا 30
درباره وبلاگ

انجام پروژه های برنامه نویسی سی و سی پلاس پلاس و سی شارپ

انجام پروژه های الکترونیکی و رباتیکی

مدیر وبلاگ : سجاد سلطانی
مطالب اخیر
نویسندگان
جستجو

آمار وبلاگ
کل بازدید :
بازدید امروز :
بازدید دیروز :
بازدید این ماه :
بازدید ماه قبل :
تعداد نویسندگان :
تعداد کل پست ها :
آخرین بازدید :
آخرین بروز رسانی :














free counters