Deprecated: Assigning the return value of new by reference is deprecated in /www/wwwroot/shabab.ps/public_html/vb/printthread.php on line 119
منتديات شباب فلسطين - Help me please......أخ محمـود
منتديات شباب فلسطين

منتديات شباب فلسطين (https://shabab.ps/vb/index.php)
-   مُتعلقات التقنية (https://shabab.ps/vb/forumdisplay.php?f=31)
-   -   Help me please......أخ محمـود (https://shabab.ps/vb/showthread.php?t=95440)

Top_elegance 06-02-2009 06:49 PM

Help me please......أخ محمـود
 
السلام عليكم ورحمة الله



الله يوفقكم بدي مساعدتكم عندي إيفالويشن بكرة على
كود بـ++c حاولت فيه بس ماعم يطلع معي شي :wacko: :icon13:
بأعرف ازعجتكم تحملوني ماعندي حدا غيركم يساعدني :s (43):



وهي الكود

http://sharialslamic.net/view.php?file=bacaa38d5d

~ | Mazaj 06-02-2009 07:05 PM

رد: Help me please......أخ محمـود
 
الرابط ما بيشتغل يا حجـة ..

وكان نفسي اساعدك .. بس لحتى الآن ما اخدت الا السي

استني الفرج

Top_elegance 06-02-2009 07:31 PM

رد: Help me please......أخ محمـود
 
يسلمو الله يعطيكي العافية
بيكفي أنك عبرتيني

محمود 06-02-2009 11:45 PM

رد: Help me please......أخ محمـود
 
السلام عليكم ،،

يا هلا فيك خيو ،،

هلا بشوف ..

عزيز النفس 06-03-2009 12:10 AM

رد: Help me please......أخ محمـود
 
تم تعديل الرابط !

محمود 06-03-2009 12:37 AM

رد: Help me please......أخ محمـود
 
أوكي خيو موضوعك سهل ،،

مش كثير صعب ،،

رح أعطيك الفكرة بالبرمجة ،،

وانت عدل ..


هيك بكون معك 90% من البرنامج ،،

طبعا ً انا زمان ما كتبت ع c++ وبالأساس ما درستها ،، يعني رح تلاقي شوية اخطاء إملائية :D

لهيك شوف يخوي هي عندك الكود ..

حاول تفهمه ..

كود PHP:



int arraySet1
[50];
int arraySet2[50];
int n=0,m=0;


int main ()
{
//*---- First set
cout << "How Many Number woud u like enter info first set ?";
cin >> n
ReadArray 
(arraySet1,n);


//*---- Second set
cout << "How Many Number woud u like enter info Second set ?";
cin >> m
ReadArray 
(arraySet2,m);

//*-- print Array 1
PrintArray(arraySet1,n);

//*-- print Array 2

PrintArray(arraySet2,m);

//*---- InterSection Array print 

IntersectionOfIntegerSet(ArraySet1,n,ArraySet2,m);

}


void ReadArray (intArraySetint n)
{
int x=0;
for (
int j=0;j<n;j++)
{
cout << "Enter element " << << " ? ";
cin >> x
arraySet
[j]=x;
}
}



void IntersectionOfIntegerSet(const int ArraySet1,int n, const int ArraySet2int m)
{
int c=0;
if(
m>n)
{
int IntersectionOfIntegerSet[n];
for (
int i=0;i<n;i++)
{
for(
int j=0;j<m;j++)
{
if(
ArraySet1[i] == ArraySet2[j]) { IntersectionOfIntegerSet[c]= ArraySet1[i] ; c++; }
}
}
}else
{
int IntersectionOfIntegerSet[m];
for (
int i=0;i<m;i++)
{
for(
int j=0;j<n;j++)
{
if(
ArraySet2[i] == ArraySet1[j]) { IntersectionOfIntegerSet[c]= ArraySet1[i] ; c++ }
}
}
}

cout << "

 InterSection Array is "
;
PrintArray (IntersectionOfIntegerSet,sizeof(IntersectionOfIntegerSet));

}


void PrintArray (const int ArraySetTempint n)
{
cout << "{";
for(
int i=0;i<n;i++)
{
cout <<  ArraySetTemp[i] << " , ";
}
cout << "}";



محمود 06-03-2009 12:46 AM

رد: Help me please......أخ محمـود
 
.. آسف //

خيتي ،، فكرتك شب ..

لهيك بعتذر ,,

والعتب ع النظر :s



Top_elegance 06-03-2009 03:35 PM

رد: Help me please......أخ محمـود
 
شكراً كتيـــــــــــــر
عزيز النفس و محمود
الله يعطيكم العافية
غلبتكم معي

.. ليآل ~ 06-03-2009 04:51 PM

رد: Help me please......أخ محمـود
 
ما ئصروا الاخوة

الله يعطيهم العافيه،، ويوفئك


الساعة الآن 03:03 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
new notificatio by 9adq_ala7sas