CS50 MARIO LESS - PROBLEM SET 1 | SOLUTION

Поділитися
Вставка
  • Опубліковано 10 лис 2024

КОМЕНТАРІ • 41

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

    👨‍💻 Learn How to Code with Private Classes - www.dorscodingschool.com/coachingplans
    ❓Having a hard time with CS50, FreeCodeCamp or Odin Project? Practice with our exclusive free coding platform: www.codingdors.com/
    🎯 Are You A Coding Expert? Take Our Free Quiz and Find Out - www.dorscodingschool.com/quiz

  • @rapidpompano3149
    @rapidpompano3149 11 місяців тому +1

    ive been having a very big problem with the nested loop part for so long mainly because im very new to coding but thanks to you i fully understand. thank you very much!!

  • @yamilo8194
    @yamilo8194 Рік тому +6

    thank you very much for explaining us this problem and not just giving us the result. you have a big future

  • @mk-of7pe
    @mk-of7pe Рік тому +7

    Going from week 0 to week 1 its to hard for someone like me with 0 prev exp this video help me understand a lot that I was missing ty!

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

      We have an ebook with exercises that help you bridge this gap, it’s completely free ;)

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

      Same . I’m stuck on it for the past 3 months 😢😑

  • @matthewbyars66
    @matthewbyars66 4 дні тому

    I had it totally different. I was going by what they taught in the lectures by creating my own input(print_row). Just curious as to why you decided not to in your tutorial? The way you did it seems much easier.
    void print_row(int spaces, int bricks);
    int main(void)
    {
    int height;
    do
    {
    height = get_int("Height? ");
    }
    while (height < 1 || height > 8);
    for (int i = 1; i

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

    Thanks, this was really helpful. Especially the last part about how to use the debbuger 👏

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

    I solved this with 2 different loops, one that printed the spaces and then one that printed the #s, but I like your solution more. Definitely more elegant.

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

    Hello I am from India,thank you very much for this video,your explanation is really good..and the debugging part was awesome 👍👍

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

    Thank you so much, you helped me to understand how to make these calculations with columns and rows.

  • @garpisandoval4819
    @garpisandoval4819 6 місяців тому +2

    Thank you so much .

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

    Thank you very much

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

    YOU ARE AWESOME!!!!

  • @zoey3605
    @zoey3605 Рік тому +3

    for some reason my triangle is upside down lol

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

    when trying to run "make mario" i get error: use of undeclared identifier 'i'
    if(i + j < height - 1). Not sure where I am messing up. my code looks exactly like yours and ive made sure all proper header libraries are included

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

      move squiggly brackets around and removed some unnecessary semicolons and it fixed itself. Great video by the way!

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

      You're welcome!

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

    Hi I don't see a link for the video that shows the set up for the environment setup.

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

      You can check our video HOW TO SETUP YOUR ENVIRONMENT FOR CS50x
      ua-cam.com/video/rgacj5xhsx4/v-deo.html

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

      @@DorsCodingSchool Thanks

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

    Hello I need a help please, I’m stucked at mario.c :11:18 error : expected’;’ after do / while statement while (n 8); icant find the solution

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

      We’d love to help you more. Did you know you can join our Discord Group and get help from me and from people around the world that are also learning how to code? dorscodingschool.com/discord

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

    Tks

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

    Obrigado.

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

    Vai fazer o do Credit da W1? Achei bem chatinho esse problema, no final meu código ficou cheio de if else. Não ficou a coisa mais bonita do mundo e tbm não sei se dava pra melhorar, mas passou nos testes :) kkkkkkk

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

      hahahaha vamos fazer em breve! Mas ja temos uma solucao antiga que funciona para a versão atual do CS50. Voce pode checar este link: ua-cam.com/video/xuxouATNfBs/v-deo.html&pp=ugMICgJwdBABGAE%3D

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

      @@DorsCodingSchool Pior q a minha solução ficou bem parecida. Basicamente fiz um:
      for (long int aux = credit_number; aux != 0; aux/=10).
      De resto o que muda são as funções que eu deveria ter colocado que nem no vídeo

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

    At 4:06 in the terminal I have cs50/mario-less/ $ make mario
    However I am met with cs50/mario-less/: No such file or directory
    I have followed everything from setting up the environment in the previous vide till this point I am confused and have no idea as to what is wrong.

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

      Is your file inside the Mario-less folder? Is your terminal inside the Mario-less folder? :)

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

      ​@@DorsCodingSchool yes that's what's wrong I am interested in joining your community.

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

    Where's the free book to break through week 0 and week 1?

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

      You can get by joining our community: www.dorscodingschool.com/discord

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

    I dont get how they expect 13 year olds to understand all ot this and for them to do it all on their own T - T

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

      ...they don't. it's a course for harvard cs freshman. it's doable by younger people, but nowhere is it expected.

  • @potahto-potatoh4655
    @potahto-potatoh4655 Рік тому +1

    You skipped a part of the problem

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

    Tks