How to Program in C# - Arrays (E05)

Поділитися
Вставка
  • Опубліковано 6 вер 2024
  • Let's learn how to make lists and arrays in C#!
    ► Download Core for free at: bit.ly/Core-Br...
    ► D&D Design-A-Dungeon Contest: dndcontest.cor...
    ● Watch the previous C# tutorial: • How to Program in C# -...
    ● My Solution to the Challenge: bit.ly/3kjTbaV
    ····················································································
    ❤️ Donate: www.paypal.com...
    ► Join Discord: / discord
    ● Website: brackeys.com/
    ● Twitter: / brackeystweet
    ● Instagram: / brackeysteam
    ········································­­·······································­·­····
    ► All content by Brackeys is 100% free. We believe that education should be available for everyone.
    ❤️ Donate: www.paypal.com...
    ········································­­·······································­·­····
    ♪ "ES_Dress Code_Black - oomiee" by Epidemic Sound

КОМЕНТАРІ • 740

  • @karolborowski4202
    @karolborowski4202 4 роки тому +332

    I've seen many tutorials teaching that simple knowledge ( even in my native language) but you're the best. Your simplicity, your humor, your voice, you're amazing. You have talent for that. Don't stop doing this :-)

    • @aLi112
      @aLi112 3 роки тому +63

      2 month later he stoped doing this :(

    • @blueraven4625
      @blueraven4625 3 роки тому +7

      @@aLi112 uff was about to say that

    • @kaktus9607
      @kaktus9607 3 роки тому +5

      siema polska xd

    • @mazdaybro
      @mazdaybro 3 роки тому +4

      @@aLi112 that's hard for him

    • @bibiniechybi1617
      @bibiniechybi1617 3 роки тому +2

      @@kaktus9607 siema

  • @_mishmoosh
    @_mishmoosh 3 роки тому +180

    Brackeys: adds miracles to shopping list
    2020: sorry those are out of stock

  • @eggoo
    @eggoo 3 роки тому +312

    brackeys makes me feel like the sexiest person alive when i manage to do his challenges correctly

    • @totallyrandompersob1664
      @totallyrandompersob1664 3 роки тому +6

      w o w. t h i s c o m p l m e n t i s w e i r d . C a n t e v e n s p e l l .

    • @ioannisloukas4131
      @ioannisloukas4131 3 роки тому +2

      True

    • @foggyforest2625
      @foggyforest2625 3 роки тому +4

      True
      Specially when it's immediately working after your first try

    • @MarshmallowBoy
      @MarshmallowBoy 3 роки тому +2

      yeah girls love people that sit at a desk all day and make programs.

    • @dudupg2137
      @dudupg2137 2 роки тому +2

      the moment when u write something that u invented and that works, that feeling

  • @derekw8039
    @derekw8039 4 роки тому +522

    Brackeys: Is making tutorial on coding in Unity
    Also Brackeys: "This video is sponsored by different game-creation platform that requires no code..."

    • @Noah-me2fm
      @Noah-me2fm 4 роки тому +20

      it's on visual studio code...

    • @meganixi5282
      @meganixi5282 4 роки тому +11

      damn, the sponsors are idiots.

    • @ApexTrailblazer
      @ApexTrailblazer 4 роки тому +10

      @@Noah-me2fm His channel is based on unity. Unity uses C#

    • @imnotjerry2226
      @imnotjerry2226 3 роки тому +10

      No, they’re geniuses

    • @tornanblade665
      @tornanblade665 3 роки тому +9

      yeah wrong choice isn't it? my bro quit the course and went to core instead.

  • @ladyrazzz
    @ladyrazzz 2 роки тому +27

    Just started programming through a university course and your lessons have helped me way more than any of the material provided during the course. You make it fun and understandable, so thank you very much!!

    • @batleyboy4099
      @batleyboy4099 2 роки тому

      iv started self teaching using brackeys videos good luck!

    • @ashrafbarbour9048
      @ashrafbarbour9048 Рік тому +1

      You started programming a year ago. Can you give me a brief update on your current progress and how you're doing?

    • @Sneaky_Turtle2
      @Sneaky_Turtle2 Рік тому

      @@ashrafbarbour9048 yeah, i just started coding yesterday, and i want to know how far someone has gone in a year.

  • @Dertres
    @Dertres 4 роки тому +33

    this is genuinely a really good tutorial series that actually helped me and taught me basics in c#, i hope it continues for a long time

    • @dotmashrc
      @dotmashrc 3 роки тому +12

      lol brackeys leaves youtube as you say this.

    • @daconday
      @daconday 2 роки тому +6

      pro timing

  • @SkySentry7
    @SkySentry7 3 роки тому +18

    He should't have stopped creating content, we need more of his tutorials! He is a good Lad!

  • @tageneislover
    @tageneislover 4 роки тому +37

    Take a shot everytime Asbjørn says "awesome."

  • @philipbellingham6483
    @philipbellingham6483 4 роки тому +35

    For the "homework" you said to do at the end, adding a number before the names is also a cool way to show how basic maths (Pemdas/Bodmas) works in methods. I added to the last Console.WriteLine a "i + 1" so that the names display with a number before the name i.e..... "1. Philip, 2. Brackeys" etc. instead of just "Philip, Brackeys"

  • @goldenpiece7087
    @goldenpiece7087 4 роки тому +12

    😥 Brackeys is my most favourite youtube channel ever. I was going to take photo with you in brackeys studio some day. Good bye man! You really hit my heart as a teacher.

    • @eliabrowning3628
      @eliabrowning3628 3 роки тому +1

      Did something happen to him? I just discovered this channel and the thought that something did already is making me sad!...

    • @goldenpiece7087
      @goldenpiece7087 3 роки тому +3

      @@eliabrowning3628 In fact, he is fine and, I hope, doing well, but he quit UA-cam in order to make a change and do something else in his life(at least thats what he said in his last video) , moving to something else. Yeah that was really sad.

  • @khutso8304
    @khutso8304 4 роки тому +188

    Thank you for these! We really do appreciate this series. Keep going!

    • @zeux6634
      @zeux6634 4 роки тому +15

      :(

    • @khutso8304
      @khutso8304 4 роки тому +11

      @@zeux6634 yeah... i seen it too. :(

    • @solarsunne4950
      @solarsunne4950 4 роки тому +5

      Did it not finish? It's unlike him to just quit before a series is done

    • @m9henri
      @m9henri Рік тому

      @@solarsunne4950 this was his last tuto :((

    • @solarsunne4950
      @solarsunne4950 Рік тому

      @@m9henri I know that now. Odd of him to leave before finishing it

  • @h.k.7953
    @h.k.7953 Рік тому +3

    I'm in college now trying to learn c#. You explain everything better then my teachers. Thank you.

  • @knockedgoose4206
    @knockedgoose4206 2 роки тому +2

    last time I looked into programming arrays scared me. That was years ago. You have simplified it and I'm more confident I can move on and tackle other things now. Thank you!

  • @mahir04
    @mahir04 3 роки тому +13

    It's strange that how the best tutorials on youtube is so underrated.

  • @aidendavis7321
    @aidendavis7321 Рік тому +2

    Never thought I’d be able to code, these videos have proved I definitely can, I just needed a good teacher. Thank you!

    • @Sneaky_Turtle2
      @Sneaky_Turtle2 Рік тому

      thats what i was thinking. I have a friend who coeds (in java) and i would look at his work and just be confused, but now i kinda know what im doing in c# which is not where i tohught id be... ever.

  • @Blue-lh9dw
    @Blue-lh9dw 4 роки тому +6

    17 minute video took me 17 hours to understand

  • @AzziSenpai
    @AzziSenpai 10 місяців тому +1

    I took a couple days after finishing this video and then came back and decided, before moving onto the next video, to try the homework section after a two day break. I am confused but pleased to say I managed to make it work and honestly there are few feelings as great as taking a chance, problem solving then coming up with your own, functional, piece of code that does exactly what was asked of you. I also like how the homework sections so far have done a great job of drawing reference from the things that we learnt before them whilst also having an element of trickery to them that encourages you to try and fail and then come up with solutions and succeed. I wonder how many people wrote the exact same thing as me and how much room there is for flexibility in the script. Brackeys is the goat and these videos are amazing 🔥

  • @necropasia
    @necropasia 3 роки тому +3

    Did the challenge as a list, realized that the sort syntax is different for a list than what is shown for an array and needed to research it myself... 10/10 would do again

  • @labreynth
    @labreynth 4 роки тому +9

    First programming tutorial process that has actually helped me learn how to program :)

  • @poresrage5053
    @poresrage5053 4 роки тому +54

    Hey brackeys, loving the content and can't wait to see the winners of the game jam! I was just wondering if you could do a video touching on character selection in a multiplayer game as I cannot seem to find a video on it anywhere. Cheers, keep up the great work!!

    • @jirue
      @jirue 4 роки тому +6

      Some more context might be welcome for this... how much of the multiplayer game is already set up? Would he be building it from scratch? Then that will require an entire series just to get to the point of even having a character selection screen. If it's just showing the point of the character selection itself, then it's using UI displays and click events like he's shown in previous videos to allocate your selection to whatever object you're using to track each player's data for a game round (if you don't know what I mean by that, then this is what I mean when I say it would require an entire series cause there's a lot of background foundation that needs built first). So it might be a good idea to give more context so he can get a better feel of scope you have in mind when asking this question.

    • @poresrage5053
      @poresrage5053 4 роки тому

      I have set up two basic characters and would like for players to be able to choose between either of them once I enter to game. Of course I will be setting up more characters but right now I'm stuck at the character selection. Since Brackeys has already made a series on how to make an online fps game, I think entire character set ups are unnecessary and would just like to learn how to get a character select screen working with two minimalistic characters

    • @rowanr-m2373
      @rowanr-m2373 4 роки тому

      @@poresrage5053 Why not just create a character class, which contains a mesh and a texture, then apply them to your player whenever it's selected

    • @poresrage5053
      @poresrage5053 4 роки тому

      @EternalClickbait I'm planning on adding special abilities to each players so it's not just a question of simply replacing character models

    • @prateekpanwar646
      @prateekpanwar646 4 роки тому +1

      @@poresrage5053
      I know how to do it but cannot explain easily in UA-cam. Better reply to discord.
      As you'll get late if you wait for video

  • @user-pg7bh7jb4t
    @user-pg7bh7jb4t 4 роки тому +100

    Brackeys: uploads a video about Arrays
    Me: Hurra.....I mean....hARRAY!!
    (Also me: That was really bad XD)

  • @abdiazizali1043
    @abdiazizali1043 2 роки тому +2

    Wow! I like the way you are explaining everything, I have watched alot of videos about array but no one is explaining everything the way you are doing it.

  • @andymcdonald7760
    @andymcdonald7760 Рік тому

    Yes! Managed to complete the challenge. Had to look at a still image of the arrays code, but still managed to combine previous lessons into a working solution which allows any number to be input by the ser, then the corresponding names, and it then spits out the names in alphabetical order.
    Phew. I LIKE this!!

  • @annanzia5445
    @annanzia5445 4 роки тому +6

    Finally another programming tutorial

  • @tsunamininja
    @tsunamininja 4 роки тому +44

    I feel like there was a missed opportunity to touch on the topic of array out of bound errors when you put in i < 10 and had an array with length 4.

    • @shaiavraham2910
      @shaiavraham2910 4 роки тому +2

      Same

    • @meganixi5282
      @meganixi5282 4 роки тому +21

      brackeys is a busy man, he probably forgot
      1 like = literally fucking nothing.

    • @yourmum69_420
      @yourmum69_420 3 роки тому

      Hi, could you explain this to me please? I have tried using a program called SharpOcarina for N64 modding, but it always tells me "index is outside the bounds of the array" and I have no idea what the ͏f͏u͏c͏k that means. Thanks

    • @tsunamininja
      @tsunamininja 3 роки тому

      @@yourmum69_420
      In short, you have a list of say, 10 objects, and you try to access the 11th, or 15th, or 100th object - which is outside the bounds of the array, and does not exist.

    • @ellyvatedaf
      @ellyvatedaf 3 роки тому

      @@yourmum69_420 Thats when the program is trying to access something that isn't in the array. If your array has 5 things and you tell your program to access the 6th or 10th item, it'll give you an out of bounds error because there are no 6th or 10th items in that array

  • @Akeiga
    @Akeiga Місяць тому +1

    Another awesome video! Thanks you all!

  • @keyemail1411
    @keyemail1411 3 роки тому +2

    How does this have only 80 thousand views? This deserves more

    • @ceiux
      @ceiux 3 роки тому +1

      In beginning there were so many views. Soon many gave up and now there are only 80k people left.

  • @divenbuls9262
    @divenbuls9262 3 роки тому +3

    I saw a little detail at 0:16
    You have watched interstellar too.
    This is my favorite movie. I respect you for liking it too. It's so underrated. It change my way of thinking lmao...
    Pls no hate from the people that dont care XD

  • @zippybagi1105
    @zippybagi1105 4 роки тому +4

    This is what we were waiting for 2 weeks

  • @mkwraith8625
    @mkwraith8625 3 роки тому +23

    Never thought I’d have to code my shopping list...

  • @themadmushroom2769
    @themadmushroom2769 4 роки тому +2

    It might be important to mention that Sorting Algorithms can mess up at a certain point, so instead of using the default .Sort(), it might be cool to explain how to write your very own sorting algorithms, which can then be modified, whether you want really simple Code to write (Shell-/Bubblesort), a high stability (Merge Sort f.e.), low memory usage or extreme precise results. This is a rather complicated topic, but maybe it might be an interesting topic for a future episode.

  • @j8zel
    @j8zel 4 роки тому +1

    Can you please do Classes/Method? I have watched so many videos about C# and yours has been the easiest to follow. Thank you!

  • @kristianthaler6525
    @kristianthaler6525 2 роки тому

    The most impressive thing to me is how the editor shaded Shrek's whole body green. They could have just added his head and left it at that, but instead they decided to go the extra mile. Bravo.

  • @mihaiveteran
    @mihaiveteran 4 роки тому +7

    Thank you Brackeys for your advices and videos
    As a 13 yr old kid i am learning so much from you and I am actually trying to develop a small 2D game by myself
    Maybe someday I will be an indie game developer
    Thank you so much for learning me and for you free lessons!
    Peace!

  • @Oxmond
    @Oxmond 4 роки тому +3

    Beautifully described and executed Brackeys. You're the best! 🤓👍

  • @BroodVI
    @BroodVI 4 роки тому +2

    Very well done, finally learning C# now. Though since I'm already familiar with most concepts i watch at 1.5x. Keep it up!

  • @corr2143
    @corr2143 4 роки тому +1

    This was a really nice and quick comprehensive way of explaining arrays, very very VERY good video.

  • @cardplugz1016
    @cardplugz1016 Рік тому

    Thank god for you bro! You’ve taught me more in this video than the 2 hours worth of lessons my college has provided

  • @AK_Studioz
    @AK_Studioz 4 роки тому +16

    Today's motivation
    17/08/2020
    Monday
    "I FEAR NOT THE MAN WHO HAS PRACTICED 10000 KICKS ONCE, BUT I FEAR THE MAN
    WHO HAS PRACTICED ONE KICK 10000 TIMES."
    -Bruce lee

  • @capilover1023
    @capilover1023 4 роки тому

    I'm an experienced developer and I know every single thing in the video but I still watched this just because it's brackeys xD It's always a pleasure to watch your videos. Keep it up!

  • @Landon_Hughes
    @Landon_Hughes 4 роки тому +2

    I love this series! I know most of what you’re teaching already, but it’s good to reinforce already known knowledge. I have my C# class (college classes) starting this Thursday and I’m pretty excited about it! 😁

  • @namename-cl8kk
    @namename-cl8kk 4 роки тому +2

    I start waching yo since 2 hrs. The 1st vid was youer firat learning c# and you make a new vidio sincw 1hr . I am lucky😁

  • @lanzjypol
    @lanzjypol 4 роки тому +2

    This is really the best tutorials ever! Thanks Brackeys! Keep up the good work

  • @thedude4039
    @thedude4039 4 роки тому +1

    It’s great that you’re making these great beginner scripting videos that will bring thousands of new people into the programming world, but there’s a problem. There’s already such a high resource density when it comes to beginner scripting tutorials, but the amount of good content for the more advanced topics, which are much more difficult, confusing and in need of an awesome channel like yours, that makes learning these concepts much easier, to teach us those difficult things is much lower, and so it might be better if you focused on teaching the more difficult topics instead of easier ones, because those topics are in more desperate need to be taught than these basic tutorials that everyone makes.

  • @AliAkbar-kw4ft
    @AliAkbar-kw4ft 3 місяці тому +1

    Best Teacher on youtube

  • @zx74c
    @zx74c 4 роки тому +4

    yesssssss im glad im early its 10:22pm for me lol ive been waiting for this thanks for making tutorials as i want to get into game development and you and dani are my inspirations

    • @thedude4039
      @thedude4039 4 роки тому

      Ever heard of Sebastian Lague?

    • @zx74c
      @zx74c 4 роки тому

      @@thedude4039 no. who is he ?

    • @zx74c
      @zx74c 4 роки тому

      @@thedude4039 oh, just searched him. of course i know who he is

  • @CatJuiceBanana
    @CatJuiceBanana 3 роки тому

    This is the most clean explanation about array.

  • @sammaciel7835
    @sammaciel7835 Рік тому

    Amazing, quick and straight to the point explanation. Loved all about it. Seriously, you are awesome! Thank you!

  • @ODDATOMS
    @ODDATOMS 3 роки тому

    I have done the task before you give it. I feel happy now. _**_

  • @nidzzo
    @nidzzo 4 роки тому +1

    I love combining this series with how to make a video game series. Keep up the good work :)

  • @akorialxstudio8519
    @akorialxstudio8519 4 роки тому +1

    Great tutorial! Thanks for keeping this series alive!

  • @dabbingraccoons6416
    @dabbingraccoons6416 Рік тому +1

    My solution(pretty simple ngl but works):
    Console.WriteLine("How many students are in your class?");
    int Stunum = Convert.ToInt32(Console.ReadLine());
    String[] Students = new String[Stunum];
    Console.WriteLine("Type in your Students names");
    for (int i = 0; i < Students.Length; i++)
    {
    Students[i] = Console.ReadLine();
    }
    Console.WriteLine("Here they are alphabetically");
    Array.Sort(Students);
    for (int i = 0; i < Students.Length; i++)
    {
    Console.WriteLine(Students[i]);
    }
    Console.ReadKey();

  • @gfujigo
    @gfujigo 4 роки тому +1

    I hope you cover Lists. In practice I rarely use arrays, I use Lists the vast majority of the time. However, arrays are foundational to understanding programming in general and C# in particular. So it’s really good you are covering arrays.

  • @Akiga_games
    @Akiga_games 2 дні тому

    This has helped me so much! Thanks for your help!

  • @StarCoreSE
    @StarCoreSE 4 роки тому +3

    Good luck covering all of C# and programming with a video per week XD

  • @mohammedabdulqareeb
    @mohammedabdulqareeb 4 роки тому +1

    Thanks for teaching the topic ARRAY!

  • @m.r3052
    @m.r3052 4 роки тому

    Ive made $30,000 on my game so far. Thanks for all your help

  • @aw_dev
    @aw_dev 4 роки тому +1

    More than 1000 views in 18 minutes? Wow. Thanks Brackeys for yet another awesome video!

  • @vitaszernys2893
    @vitaszernys2893 2 роки тому +1

    15:50 I feel like Dwayne and Shrek would always get into arguments...

  • @halah8348
    @halah8348 2 роки тому

    the challenges are def my fav part of the videos

  • @rednrg2641
    @rednrg2641 4 роки тому

    First time visiting your channel and I gotta say, you are a breath of coronavirus free air!!! Thank you for using UA-cam for something positive and rewarding. The way you explain things makes people like me feel super smart lol. Get used to see me because I'll be checking your videos. Already a subscriber with all notifications coming my way. (MY GOAL: Making a game by X-MAS) So.... Let's do this!!!!

  • @alperenbaytimur
    @alperenbaytimur 7 місяців тому +1

    some heroes dont wear capes, I litterally have an exam tomorrow with this exact rubric

  • @neelamverma1032
    @neelamverma1032 4 роки тому +2

    Major game developer you tuber are from nordic countries.
    Brackeys from Denmark
    Sykoo from Sweden
    Dani from Norway.

  • @KptKosmit91
    @KptKosmit91 4 роки тому +7

    I love storing my dreams in a fridge!

    • @jk7074
      @jk7074 3 роки тому

      Midnight snacks

    • @AungAung-ps7pt
      @AungAung-ps7pt 3 роки тому +1

      Well, then, your dreams will just freeze.😂

  • @TitoPopoy
    @TitoPopoy 4 роки тому +1

    I'm really new at coding and i love your content. Hoping to learn how to code and start making my own games.

  • @mohamedeno1282
    @mohamedeno1282 4 роки тому

    thanks too much as a new to programming it was so confusing but when i saw your vids about it it made everything simple and easy.

  • @desmondquekhj
    @desmondquekhj 4 роки тому +6

    I learnt more from this video then my 2hr class lol.

  • @SatSageyo
    @SatSageyo 4 роки тому

    Finally brackeys uploading a video

  • @itstechshow7747
    @itstechshow7747 Рік тому

    Amazing, I love the way you explain. I watched Array Tutorials from other channels too but in this video I got lots of new idea. Thank you ❤

  • @readm5414
    @readm5414 4 роки тому

    I am shocked that quality video such as these have only a few thousands views

  • @pandaengine
    @pandaengine 4 роки тому +293

    Who else here knows all of these but still watching? ✋

    • @childishlandino3679
      @childishlandino3679 4 роки тому +21

      No harm in reinforcing information 👌

    • @VijayAVk
      @VijayAVk 4 роки тому +2

      Me ▼・ᴥ・▼

    • @Moby41
      @Moby41 4 роки тому +6

      @@childishlandino3679 yessir 👍

    • @VANTABL4CK
      @VANTABL4CK 4 роки тому +7

      yes its fun. My favourite part is the creative thumbnails

    • @greyseth2721
      @greyseth2721 4 роки тому

      Me

  • @MiScusi69
    @MiScusi69 3 роки тому

    those are the only lessons that I genuinely like.

  • @MrDavidpryce
    @MrDavidpryce 3 роки тому +1

    You helped me understand this so much better! Thank you

  • @animationspace8550
    @animationspace8550 4 роки тому

    Please extend this series very far. Everyone covers the very basics but decides not to extend on any other basics.

  • @JupiShinn
    @JupiShinn 3 роки тому

    10:22 - Disadvantages of using Arrays...
    What if we put things like this?
    Letting user to decide how long the array will be?
    Console.Write("How many students are in your class?: ");
    int input = Convert.ToInt32(Console.ReadLine());
    string[] student = new string[input];
    ...
    As I am super new in C# this may be related to the Schrodinger's cat. :D
    May be good or it is very bad.
    You will know the moment you open this box. ;)

  • @thomb.9013
    @thomb.9013 3 роки тому

    this has been REALLY fun for now..

  • @chongterry734
    @chongterry734 Рік тому +1

    I need help with this twist: Instead of entering the student number first, what if we enter the student names first and it will automatically count the student number for us?

  • @supertenchoo4271
    @supertenchoo4271 4 роки тому

    still learning thank you Brackeys am little bit comfort with list and array after watching this video

  • @XDarkEcho
    @XDarkEcho 4 роки тому

    Great tutorial, thanks for all this free quality information, Brackeys! Now then, ONWARD, to the next one!

  • @theknard3202
    @theknard3202 4 роки тому +11

    how am i this early?
    realization i spend to much time procrastinating

  • @Kncperseus
    @Kncperseus 4 роки тому +4

    Hey man, love your videos. I have an unrelated request:
    I am trying to learn how to do character animations in Unity. I would really appreciate it if you could consider making a tutorial should you find the time. Thanks!

  • @the_game1259
    @the_game1259 2 роки тому +2

    As much as I love these tutorials, I don't like deleting my hard work from the last episode challenge :( (ik I could make a new project every time, but that's to hard lol)

    • @BlakeDJordan
      @BlakeDJordan Рік тому +4

      One thing you could do is make it a comment by putting a '/*' at the beginning of it and a '*/' at the end (ignore apostrophe). That'll nullify that bit of code, while you work on another. There COULD be an easier way, but I'm still pretty fresh.

  • @katepark4046
    @katepark4046 3 роки тому +1

    Better than my professor. Thanks 🙏

  • @chetanamali956
    @chetanamali956 4 роки тому +1

    thanks brackey for C# videos but i have one request for can you make another videos on "bolt" also?
    please...

  • @leptir1
    @leptir1 4 роки тому

    "favourites" vs "favorites" in one video
    yeeeeeesh

    • @Hello-qg4yk
      @Hello-qg4yk 4 роки тому

      It's definitely "colour" and "favourites"
      It just looks more appealing

  • @NoelJasik
    @NoelJasik 4 роки тому +27

    Someone: Best Student doesn't exist
    Me: 15:58

    • @nooptiui
      @nooptiui 4 роки тому +2

      @Noel Jasik, I don't get it

    • @epiccreeper102
      @epiccreeper102 4 роки тому

      @@nooptiui Shrek is the best student

  • @jackiechan6460
    @jackiechan6460 Рік тому +1

    Here is my soluion to the homwork with notes :D
    .
    .
    .
    .
    .
    .
    //initial question
    Console.WriteLine("How many students do you have?: ");
    //records user input as an integer
    int studentCount = Convert.ToInt32(Console.ReadLine());
    //creates an array, and the index amount of the array.
    //entering 4 previously, will create an array of 4 strings.
    string[] students = new string[studentCount];
    //asking user for input, using a variable in the text.
    Console.WriteLine("Enter the names of your " + studentCount + " students.");
    //loop to record the input of the user. user has 4 lines available.
    for (int index = 0; index < studentCount; index++)
    {
    students[index] = Console.ReadLine();
    }
    //sorts the user input to numerical/alphabetical order.
    Array.Sort(students);
    //writes a line prior to printing results
    Console.WriteLine("Here are your students in alphabetical order");
    //prints names of students entered in alphabetical order
    for (int index= 0; index < studentCount; index++)
    {
    Console.WriteLine(students[index]);
    }
    //wait before closing
    Console.ReadKey();

    • @sreeharisreenandanam490
      @sreeharisreenandanam490 Рік тому

      using System;
      using System.Collections.Generic;
      using System.Linq;
      using System.Text;
      using System.Threading.Tasks;
      namespace ConsoleApp1
      {
      class Program
      {
      static void Main(string[] args)
      {
      Console.WriteLine("HOW MANY STUDENTS ARE IN YOUR CLASS: ");
      int noStu = Convert.ToInt32(Console.ReadLine());
      string[] sudents = new string[noStu];
      Console.WriteLine("ENTER STUDENTS NAME: ");
      for(int i = 0; i

  • @NicoFye
    @NicoFye 4 роки тому

    Thank you. Sometimes you need a fresh tutorial to reorganize in your head what you already learned

  • @MrRedpearl
    @MrRedpearl 4 роки тому

    Who doesn't love Brackeys?
    This channel is a
    using UA-cam;
    namespace Brackeys
    {
    lifesaver + headacheSaver + timeSaver
    }

  • @BARRYMCOCKINER223
    @BARRYMCOCKINER223 2 роки тому

    Glad you exist man this is so cool

  • @luke2042
    @luke2042 Рік тому

    Great video! Explained very simple and easy to understand.

  • @Juanah92
    @Juanah92 3 роки тому

    Thank you! Comparing arrays and lists was super helpful.

  • @TinyDeskEngineer
    @TinyDeskEngineer 3 роки тому

    I was about to say that this series was missing a tutorial on structs but then I remembered that those are just classes but different in some way

  • @zeekc.9053
    @zeekc.9053 5 місяців тому

    THANK YOU IVE BEEN SO CONFUSED

  • @gamedevelopmenttutorials2172
    @gamedevelopmenttutorials2172 4 роки тому +1

    Good Job Brackeys.

  • @ghost_xtc627
    @ghost_xtc627 3 роки тому

    you can also size an array
    example
    int size= int.Parse(Console.ReadLine());
    int[]array=[size];

  • @marcinziajkowski3870
    @marcinziajkowski3870 Рік тому

    Brackeys when will you be back?
    I still have hope for your glorious comeback.

  • @jerryfox2960
    @jerryfox2960 4 роки тому +1

    Finally! I love these small tutorials the really helped me get started, yours are really easy and comfortable to follow!
    Maybe you can show us in the next video how to store and get variables from a file? That would be so helpful, all of the answers from Google were so confusing! Thanks and please continue these tutorials!

  • @testa6121
    @testa6121 4 роки тому +50

    There is no array that can store the information you give us.

    • @SaadTheGlad
      @SaadTheGlad 4 роки тому +4

      Testa awwwwww

    • @soggeysandwhich7520
      @soggeysandwhich7520 4 роки тому +1

      *sad C# noises*

    • @savageecto6813
      @savageecto6813 3 роки тому

      true

    • @ayushgupta-hi5ti
      @ayushgupta-hi5ti 3 роки тому +1

      Console.Write(" How many numbers of students are there in ur class: ");
      string[] students = new string[Convert.ToInt32(Console.ReadLine())] ;
      for (int i = 0; i < students.Length; i++)
      {
      students[i]=Console.ReadLine();
      }
      Array.Sort(students);
      Console.WriteLine("------------------");
      for (int i = 0; i < students.Length; i++)
      {
      Console.WriteLine(students[i]);
      }
      this will work!!

    • @ozhinz
      @ozhinz 3 роки тому

      @@ayushgupta-hi5ti im pretty sure it was a joke

  • @pbthemass9374
    @pbthemass9374 4 роки тому +3

    Petition for Brackeys to Give a tutorial about 3d Enemy AI with Guns and Shooting. Pow Pow!!!

    • @zer0flash16
      @zer0flash16 4 роки тому

      do u watch dani's videos??