| الإهداءات |
|
|||||||
![]() |
|
|
أدوات الموضوع | انواع عرض الموضوع |

|
|
#11 | ||||
|
قوة السمعة: 103
![]() |
ههههههههه حبيبتي عاشقة d:
عم بخبص هيني بس مش عم تطلع النتيجة المطلوبة :p يلا بانتظار محمود :) معي تقريبا ساعة وربع لحتى أسلم الاشي :p |
||||
|
|||||
| اقتباس المشاركة |
|
|
#12 | ||||
|
قوة السمعة: 103
![]() |
ياااي فجر مو مشكلة ملف الوورد هيني صورتو تصوير :pp
مو مشكلة مساعدتين بنفس الوقت مفيدين كمان هههههههه |
||||
|
|||||
| اقتباس المشاركة |
|
|
#13 | ||||
|
قوة السمعة: 103
![]() |
يللا وهي الكود معدل كمان مرة :P
#include <iostream> using namespace std ; class ArrayList { int size; public : int *list; ArrayList(); ArrayList(int ) ; void SetSize(int); int GetSize(); void ReadArray(); void PrintArray(); int PositiveCount(); void copyPositiveValues(ArrayList obj1); ~ArrayList(); }; ArrayList::ArrayList(){size=5;}; ArrayList::ArrayList(int n){size=n;} void ArrayList::SetSize(int S ){size=S;} int ArrayList::GetSize(){return 6 ;} void ArrayList::ReadArray(){ int num; for (int i=0 ; i<size ; i++) { cin >>num; list[i]= num ;} } void ArrayList::PrintArray(){ for (int i=0 ; i < size ; i++) cout <<list[i]<<" ";} int ArrayList::PositiveCount(){int Pcount=0 ; for(int i =0;i<size ; i++) { if (list[i] >= 0) Pcount++; } return Pcount; } void ArrayList::copyPositiveValues(Array List obj1) { obj1.list; for (int i=0; i<size ; i++) { if (list[i]>=0) cout <<list[i] <<" " ; } cout <<endl; } ArrayList::~ArrayList(){ } void main () { ArrayList list[6]; cout <<"please Enter 6 values to fill the List :"; list[6].list=new int [6]; list[6].ReadArray(); list[6].PrintArray(); cout <<"the number of the positive values inside the first list is "<<list[6].PositiveCount()<<endl; int size; size =list[6].PositiveCount(); ArrayList List(size); List.copyPositiveValues(list[6]); cout << size<<endl; } |
||||
|
|||||
| اقتباس المشاركة |
|
|
#14 | ||||
|
قوة السمعة: 103
![]() |
هيك صار تقريبا شكليا كامل بس بدو تعديل عشان تطلع النتيجة صح :P
#include <iostream> using namespace std ; class ArrayList { int size; public : int *list; ArrayList(); ArrayList(int ) ; void SetSize(int); int GetSize(); void ReadArray(); void PrintArray(); int PositiveCount(); void copyPositiveValues(ArrayList obj1); ~ArrayList(); }; ArrayList::ArrayList(){size=5;}; ArrayList::ArrayList(int n){size=n;} void ArrayList::SetSize(int S ){size=S;} int ArrayList::GetSize(){return 6 ;} void ArrayList::ReadArray(){ int num; for (int i=0 ; i<size ; i++) { cin >>num; list[i]= num ;} } void ArrayList::PrintArray(){ for (int i=0 ; i < size ; i++) cout <<list[i]<<" ";} int ArrayList::PositiveCount(){int Pcount=0 ; for(int i =0;i<size ; i++) { if (list[i] >= 0) Pcount++; } return Pcount; } void ArrayList::copyPositiveValues(Array List obj1) { obj1.list; for (int i=0; i<size ; i++) { if (list[i]>=0) cout <<list[i] <<" " ; } cout <<endl; } ArrayList::~ArrayList(){ } void main () { ArrayList list[6]; cout <<"please Enter 6 values to fill the List :"; list[6].list=new int [6]; list[6].ReadArray(); cout<<"the content of the first array are : "; list[6].PrintArray(); cout<<endl; cout <<"the number of the positive values inside the first list is "<<list[6].PositiveCount()<<endl; int size; size =list[6].PositiveCount(); ArrayList List(size); List.copyPositiveValues(list[6]); cout <<"The size of the second list is :" << size<<endl; } |
||||
|
|||||
| اقتباس المشاركة |
|
|
#15 | ||||
|
قوة السمعة: 103
![]() |
لأ هيك :P
#include <iostream> using namespace std ; class ArrayList { int size; public : int *list; ArrayList(); ArrayList(int ) ; void SetSize(int); int GetSize(); void ReadArray(); void PrintArray(); int PositiveCount(); void copyPositiveValues(ArrayList obj1); ~ArrayList(); }; ArrayList::ArrayList(){size=5;}; ArrayList::ArrayList(int n){size=n;} void ArrayList::SetSize(int S ){size=S;} int ArrayList::GetSize(){return 6 ;} void ArrayList::ReadArray(){ int num; for (int i=0 ; i<size ; i++) { cin >>num; list[i]= num ;} } void ArrayList::PrintArray(){ for (int i=0 ; i < size ; i++) cout <<list[i]<<" ";} int ArrayList::PositiveCount(){int Pcount=0 ; for(int i =0;i<size ; i++) { if (list[i] >= 0) Pcount++; } return Pcount; } void ArrayList::copyPositiveValues(Array List obj1) { obj1.list; for (int i=0; i<size ; i++) { if (list[i]>=0) cout <<list[i] <<" " ; } cout <<endl; } ArrayList::~ArrayList(){ } void main () { ArrayList list[6]; cout <<"please Enter 6 values to fill the List :"; list[6].list=new int [6]; list[6].ReadArray(); cout<<endl; cout<<"the content of the first array are : "; list[6].PrintArray(); cout<<endl; cout <<"the number of the positive values inside the first list is "<<list[6].PositiveCount()<<endl; int size; size =list[6].PositiveCount(); ArrayList List(size); List.copyPositiveValues(list[6]); cout <<"The size of the second list is :" << size<<"and the content of the second list is " ; List.PrintArray() ; } |
||||
|
|||||
| اقتباس المشاركة |
|
|
#16 | ||||
|
قوة السمعة: 103
![]() |
السؤال تقلص لشو سبب الرن تايم ايرور بهاد الكود
#include <iostream> using namespace std ; class ArrayList { int size; public : int *list; ArrayList(); ArrayList(int ) ; void SetSize(int); int GetSize(); void ReadArray(); void PrintArray(); int PositiveCount(); void copyPositiveValues(ArrayList obj1); ~ArrayList(); }; ArrayList::ArrayList(){size=5;}; ArrayList::ArrayList(int n){size=n;} void ArrayList::SetSize(int S ){size=S;} int ArrayList::GetSize(){return 6 ;} void ArrayList::ReadArray(){ int num; for (int i=0 ; i<size ; i++) { cin >>num; list[i]= num ;} } void ArrayList::PrintArray(){ for (int i=0 ; i < size ; i++) cout <<list[i]<<" ";} int ArrayList::PositiveCount(){int Pcount=0 ; for(int i =0;i<size ; i++) { if (list[i] >= 0) Pcount++; } return Pcount; } void ArrayList::copyPositiveValues(Array List obj1) { obj1.list; for (int i=0; i<size ; i++) { if (list[i]>=0) cout <<list[i] <<" " ; } cout <<endl; } ArrayList::~ArrayList(){ } void main () { ArrayList list; cout <<"please Enter 6 values to fill the List :"; list.list=new int [6]; list.ReadArray(); cout<<endl; cout<<"the content of the first array are : "; list.PrintArray(); cout<<endl; cout <<"the number of the positive values inside the first list is "<<list.PositiveCount()<<endl; int size; size =list.PositiveCount(); ArrayList List(size); List.copyPositiveValues(list); cout <<"The size of the second list is :" << size<<"and the content of the second list is " ; List.PrintArray() ; } |
||||
|
|||||
| اقتباس المشاركة |
|
|
#17 | |
|
قوة السمعة: 50
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
هاااا
|
|
|
||
| اقتباس المشاركة |
|
|
#18 | ||||
|
قوة السمعة: 103
![]() |
هادا برنامج برمجة بيعطوه للتخصصات الحوسبية على نمط لغات برمجة تانية متل الجافا
![]() وعلي واجب فيه وبرضو حالتي تقول : "هاااا" |
||||
|
|||||
| اقتباس المشاركة |
|
|
#19 | ||||
|
قوة السمعة: 509
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
o.O
و كنت ناوية ادرس هندسة كومبيوتر ال هههههههههههههه موفئة موفئة :S |
||||
|
|||||
| اقتباس المشاركة |
|
|
#20 | |
|
قوة السمعة: 0
![]() |
في السطر 23
اعملي فراغ بين الفاصلة المنقوطة والرقم 5 ونفس الشي بالسطر 24 و السطر 25 وفي كمان مشكلة بالسطر 50 |
|
| اقتباس المشاركة |
![]() |
| الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
|