object
- *!* مكتبة اكواد سي ++ والبرامج الجاهزه *!*
س/ أكتب برنامج ينشئ ملف "text.dat" ويدخل فيه المستخدم أي text و أكتب برنامج ثاني يقوم بطباعة محتوى هذا الملف
- *!* مكتبة اكواد سي ++ والبرامج الجاهزه *!*
لو سمحت حط الأكواد الباقية
- سؤال عن ال Class
class name { static int x; int y; public: name( ); static void incerment( );//----------------------------(1) void incerment2( );//------------------------------(2) }; في هذا المثال الدالة رقم واحد لايمكن لها إلا أن تدخل على المعلومة ال static إللي هي x فقط فا…
- أريد معرفة الخطأ في هذا البرنامج
{ Student std1,std2; int x[3],y[3];-------------------------------------(1) std1.setAll(auth,pri,i); std1.getAll(auth,pri,i); std1.printStudentDetails(); x[1]=std1.author; x[2]=std1.ISBN; x[3]=std1.price; std2.setAll(auth,pri,i); std2.getAll(auth,pri,i); std2.…
- مشكلة مع ال Pointers
void sub_string(char *source,int start,int count,char *&dest) { dest=new char[count+1]; start--; int i=0 for ( i=0;i<count;i++) { dest=source[start++]; } dest='\0'; } عفوا هذا الحل الصحيح
- اسئله وتمارين وبرامج سي++
مرحبا ياليت تشرح بالتفصيل الممل موضوع Files و خاصة Random Files و نكون ممنونين لك وشكرا
- مشكلة مع ال Pointers
void sub_string(char *source,int start,int count,char *&dest) { if(start>count) dest=new char [start-count+1]; else dest=new char[count-start+1]; int i=0 for ( i=0;i<count;i++) { dest=source[start++]; } dest='\0'; } هذا هو الحل المثالي بإذن الله
- مشكلة مع ال Pointers
كلمة "program " يبيك ترجعها في ال dest والدالة لازم تكون void تابع معي الحل زين ودقق في الخطوات. void sub_string(char *source,int start,int count,char *&dest) { dest=new char []; int i=0 for ( i=0;i<count;i++) { dest =source[start++]; } }