الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

الرجاء اقراؤ هذا الكود

مغلق
بدأه لماته في 28 أبريل 2003 · 1 رد · 935 مشاهدة · في Microsoft Visual C#.NET
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكم

ممكن تن تنظروا فى هذل الكود

it use to build minimum spaning tree

ارجوكم ردوا علي

#include

#include

#include

#include

void main (void)

{

char a[200][200]={0};

char aa[200][200]={0};

int i,j,b=0,v=0;

i=1,j=0;

int n;

cout<<"plese enter the number of node of graph";

cin>>n;

n=n+1;

while(i

{

puts("plese enter a node ");

fflush(stdin);

cin>>a[j];

aa[j]=a[j];

i++;

}

i=1,j=0;

int c=1,d=0;

while(i

{

a[0][c++]=a[0];

aa[0][j]=a[j];

i++;

}

char z,x;

cout<<"plese enter two node and wight betwen them if you went to end program enter ?";

while(x!='?')

{

fflush(stdin);

cin>>x,z,c;

i=0,j=0;

for(;(i

for(;(j

if(j

{

puts("hi");

a[j]=c;

cout <

}

cout<<"plese enter two node and wight betwen them if you want to end program enter ?");

fflush(stdin);

}

cout<<"plese enter any node";

cin>>x;

c=0;

int s[200],min=0;

while(cB)

{

if(s[mm];);

for(j=1;j

aa[j]=a[j];

z=a[j];

v=0;

for(i=1,j=0;i

for(j=1;i

if(a[j]==min)

{

a[j]=0;

}

x=z;

c++;}

for(i=1;i

cout<

for(j=1;j

cout<

#2

أخي هذا الكود باللغة السي ++

وشكراً

If you think yourself that you are nobody, you should go somewhere to find yourself

هذا الموضوع مغلق.

مواضيع مشابهة