التخطي إلى المحتوى الرئيسي

الدرس العاشر function Insert

دورة  Data structer
ادورات البحث :
-دروس برمجه
-تعلم لغة c++
شروحات للغة ال c++
-دروس للغة c++
-امثله على لغة c++
-دروس وامثله على داتا ستركتشر لل c++

الدرس العاشر  function Insert
ملاحظه يجي عليك التفريق بين function Insert و       function InsertAT
 حيث      function InsertAT
يقوم لاضافه في مكان محدد من قبلك
  بينما     function Insert
يقوم باضفه في البدايه
Insert

The function insert inserts a new item in the list. Because duplicates are not allowed, this function first searches the list to determine whether the item to be inserted is already in the list.


ولان الى الكود البرمجي المستخدم لهاذا ال function




هذا كل ما يخص شرح اليوم لا تتردد بطرح اسئلة اسفل المنشور
الى القاء في الدرس الحادي عشر
               
مع تحيات فريق عمل مدونة عالم البرمجه
الكاتب : احمد الظواهره

تعليقات

المشاركات الشائعة من هذه المدونة

شرح + اسئله لموضوع Pointers في لغة c++

شرح + اسئله لموضوع Pointers في لغة c++ Lab 2: Using Pointers Lab Objectives: In this lab students will learn: ü Memory concept of variables, pointers and how to use variable identifiers and pointers to refer to the variable. ü Pointer variable declarations and initialization. ü Direct and indirect referencing a variable using the pointer operators. ü Using * and address (&) operators.   Background: When declaring a variable, it is located at a specific location in memory, the memory address. The task of locating variables is automatically performed by the operating system during runtime. In some cases we need to know the address where the variable is being stored during runtime. Variable which stores a reference to another variable is called a pointer. We can directly access the value stored in the variable using a pointer which points to it. Syntax: 1. Pointer Declaration: Syntax: Pointer_type *Pointer_name; Example: int *Ptr1; double *Ptr2; 2. Pointer initializati

شرح + اسئله عن موضوع Arrays في لغة c++

شرح + اسئله عن موضوع  Arrays في لغة c++  1: Arrays   Lab Objectives: ü Learn how to use the array data structure to represent a set of related data items. ü Learn how to declare arrays, initialize arrays and refer to the individual elements of arrays. ü Learn how to pass arrays to functions. ü Learn how to declare and manipulate Two-dimensional arrays. ü  Background:   Definition Array: A collection of individual values, all of the same data type, stored in adjacent memory locations. One Dimensional Array: An array with a single variable index. Using the array name together with an integral valued index in square brackets refers to the individual values. The first array element always has the subscript 0. The second array element has the subscript 1, etc. The base address of an array is its beginning address in memory.   Declaring an Array: Use the following syntax below. DataType ArrayName [Const Int Expression]; The example below shows the declaration of an integ

شرح واسئله عن Friend function & friend class.

موضوع Friend function & friend class Task #6: Friend function & friend class.   Create and destroy objects dynamically. Static data members and member functions.     Objectives:   Using friend functions, and friend classes.   Using this pointer.    Creating and destroying objects dynamically with operators new and delete, respectively.    Creating dynamic array class.   Using static data members and member functions.   Student Learning Outcomes:   You will: Be able to write a friend function and friend class. Be able to allocate and de allocate objects dynamically.   Background:   You have learned the syntax of friend function, friend class, this pointer, and delete and new operators. You have also learned how to write a static data members and member functions.