Using ChatGPT in C Programming

Поделиться
HTML-код
  • Опубликовано: 15 ноя 2024
  • Using ChatGPT in C Programming - this video poses a simple programming problem to ChatGPT and looks at the pros and cons of the generated answer. ChatGPT could be a great tool when learning C programming, but be careful not to become over reliant on the tool. And do not turn in ChatGPT answers as your own original work.

Комментарии • 4

  • @paulramasco6769
    @paulramasco6769 Год назад +1

    This was a very cool video. I haven't used chatgpt in some time but when I did it was just to sort of get in the ballpark because like you said, some of the code it produces is goofy.
    Thank you for sharing.

  • @dishtroyer142
    @dishtroyer142 9 месяцев назад +1

    Everyone needs to see this video! Most people thinks that IA is this all-knowing entity thats gonna enslave humanity, when its only a tool, its excellent for producing mediocre stuff but when you need something a little bit more deep It start giving you random shit 😂

  • @GaryChike
    @GaryChike Год назад +1

    Great video! And the more obscure the language, the wonkier the results become Ask me how I know! I took the liberty at coming up with one possible solution, for the one or more slices of cake, using a ternary: printf("Each person should get %.1f slice%s of cake.
    ", slicesPerPerson, slicesPerPerson == 1 ? "" : "s");
    I can't take all the credit - the solution was inspired from Chapter 4 of Ivor Horton's book: "Beginning C From Novice to Professional"

    • @PainlessProgramming
      @PainlessProgramming  Год назад +1

      Love it. Thanks for sharing that elegant solution. I was going to suggest an if (numPeople == 1) ... else ... but I like your solution better.