C# Programming Tutorial 37 - Searching an Array

preview_player
Показать описание


~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~

🅑 Bitcoin - 3HnF1SWTzo1dCU7RwFLhgk7SYiVfV37Pbq
🅔 Eth - 0x350139af84b60d075a3a0379716040b63f6D3853
Рекомендации по теме
Комментарии
Автор

the best explanation that I found on YouTube!!

yulinskay
Автор

...similar thing, not the prettiest but a System.Linq approach

using System;
using System.Linq;

namespace whatever
{
class Program
    {

       {
        int[] grades = {30, 430, 23, 10};
var _val=23;
bool hasval = grades.Contains(_val);
Console.WriteLine ("The array {0} contain '{1}'.", hasval ? "does" : "does not", _val);
       }
}
}

seanabbott
Автор

simple explanation! that's enough for me :)

MAX_RITIK
Автор

is that the same as squential search?
thx.

imd.gd.jinggasatwikaprabaw