لسلام عليكم ....انا مشتركه جديده في المنتدى بس من المتابعين للمواضيع الخاصه بالC++ وعندي برنامج احترت في الحل واذا ممكن المساعده فيه
creat a class DoubleScripetdArray that has a this feature :constructur,copy constructur,dectructur,set fuction . at construvtion time ,the class should be abole to creat an arry of any number of row and columns.the class also supplt operator() to perform double_Scripetd operation ,ex: in 3 by 5 DoubleScripetdArray called a the user could wriye a(1.3) to acvsess the ellement in row 1 and column 3 :note that this operatore can recive any numer of arguments.function operatore should perform the proper pointer arithmatic to accsess each element of the array,the class should also provide the following operatore (==,!= ,=,<<, >>)
اتمنى تكونوا فهمتوا الكلاس وبالنسه لين الحل اللي فكرت فيه كان على single array لا ني تخربطت في الدبل ..وهذا مثال للحل:
class Array }
friend ostream &operator<<(ostream$,const Array &); p
friend istream &operator<<(istream$,i Array &); p
public:
Array (int )
Array (const Array &)
~Array();
int GetSize ();
const operator ==(const Array &); p
bool operatore !=(const Array right)const ;
{
return !(this==right);
}
private:
int size;
int *ptr;
}
هذا اللي فكرت فيه وبالنسبه لل implementation تخرربطت في حله وطلع لي errors
ارجوا تساعدوني في حل هالكلاس على DoubleScripetdArray