دانلود پاورپوینت آرایه ها و ساختار ها در زبان برنامه نویسی
نوع فایل: power point
فرمت فایل: pptx
قابل ویرایش
تعداد اسلاید : 38 صفحهقسمتی از پاورپوینت : ADT (Abstraction data type)آرايه هايونيون ها و ساختارهاماتريس هاي اسپارسآرايه هاي چند بعدي چند جمله اي هارشته هامجموعه ای از داده كه در خانه های پشت سرهم حافظه قرارمی گيرند.مجموعه ای از زوجها شامل انديس و مقدار است.به ازای هر انديس يک مقدار مربوط به آن انديس وجود دارد (تناظر يا نگاشت) int a [7] = { 3,5,2,7,9,10,11} - GeneralArray(int j, RangList list ,float InitialValue=DefaultValue); /* Creates a j dimension array of floats where the range of the kth dimension is given by the kth element of list.*/ - float Retrieve (index i); //if(i is in the index set )return the item associated with i in the array else return error -void Store( index i, float x); //if (i is in the index set ) insert new pair else return error. يک آرايه يک بعدی به سادگی بوسِله نسبت دادن دو کروشه به نام يک متغير تعريف ميشود: int list[5]; آدرس اولين عنصر آدرس مبنا يا پايه ناميده می شود.Variable Memory addresList[] base address = aList[1] a+1*sizeof(int)List[2] a+2*sizeof(int)List[3] a+3*sizeof(int)List[4] a+4*sizeof(int)
برچسب ها:
download-PowerPoint-araye-ha-va-sakhtar-ha-dar-zaban-barname-nevisi