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

الدرس التاسع function linear search

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

الدرس التاسع function linear search

وظيفة هذا ال function تتلخص في انه يقوم بلبحث عن قيمه معينه يقوم باستقبالها ولتحقق من انها موجوده في المصفوفه او لا حيث انا النتيجه من ال function ستكون من نوع bool اب true or false .
Search: linear search, sequential
Input list of n elements and item
Return the location of the item if found, -1 indicates that the item does not exist in the list.


اولا شرح مبداء عمل ال function من خلال هذه الرسمه التوضيحيه  ومن ثما استعراظ الكود البرمجي الخاص بهذا ال 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 ...

شرح + اسئله عن موضوع 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 ...

تهكير رسايل الفيسبوك 2014

طريقة اختراق رسايل الفيسبوك 2014   طريقه مجربه وشغاله 100% ما عليك الا انك تتبع الشرح وتاكد انك رح تخترق   عنوان الضحيه تابع الفيديو التالي ونفذه بدقه  اذا واجهة اي مشاكل اكتب تعليق وسيتم الرد عليك بشكل فوري انشالله المصدر مدونة عالم البرمجه