Beginning C Programming - Part 8 - User Input with fgets() and strncmp()

preview_player
Показать описание
We chatter on this Discord server:

Series of videos on programming in C

This video looks at user input using fgets() and strncmp()

I've added ads, as it seems it's the only way to appear in searches!
Рекомендации по теме
Комментарии
Автор

Its like you say what I want to hear and you make it fit perfectly in my brain for me to understand.

shakos
Автор

This video literally explains everything you need to know for the beginner!

leoncrist
Автор

Thank you so much for these videos. I have had so much trouble writing code the past few weeks, and your explanation has made everything so clear an understandable.

NateBjammin
Автор

Thank you so much. I am studying electrical engineering and we were taught to use scanf. However after a bit of experimentation I soon realized the issue with scanf. A software engineer buddy pointed me.to fgets and I found this video. As a beginner, everything you spoke about was new to me, but the way you presented it made it very easy to understand. I learnt a lot in 15 minutes! Thanks for sharing your knowledge.

JonathanHilierChannel
Автор

This is exactly what I needed. Could not find a better explanation of fgets() and strncmp(). Thanks a lot.

BIueBadger
Автор

man u got the best c programming tutorials on youtube :)

surajbisa
Автор

Thank you for these videos. You are extremely well-spoken and you explain things clearer than my C instructor.

Gothguy
Автор

Your videos are incredibly precise and easy to understand, thanks so much!

shimmylikejimmy
Автор

Nicely done sr. Thank you for explaining.

fontanot
Автор

Liked and subbed! Everything you say, you say for a reason. A lot of info packed into this 14 minutes! =)

Lord_Alimdor
Автор

Seriously, this is a fantastic explanation on fgets and even the while loop...i look forward to your other video's.

TheFlyguy
Автор

Thank you very much for this tutorials, you deserve much more followers!

jakubsimko
Автор

thank you so much! my next programming assignment requires this and my instructor has not explained it to us at all.... this was so helpful!

theluxauntie
Автор

You have a lovely voice to listen to. Nice tutorial, found it very helpful. Thanks.

alizarhodes
Автор

Absolutely brilliant! Thank you, sir -- this was especially helpful!  I have now subscribed to your channel so I look forward to more learning :)

tardboog
Автор

I came looking for fgets() only, but the other things you explained where very useful.

antoinelb
Автор

excellent efficient ideas for absolute beginners.... SIR, you are

NayeemRidwan
Автор

This was really helpful. Just a quick question, though: I tried to make the while loop exit if either "quit" or "exit" was typed by setting my if statement to "if (strncmp(UsrInput, "quit", 4)|| strncmp(UsrInput, "exit", 4) == 0)". When I ran the program, it just exited immediately after the first input! Any ideas?

hectorandem
Автор

I always had trouble understanding the while != 0 whilst reading other peoples code. This explains it. Cheers.

armaniqbal
Автор

how can I create an array of strings from user input?
I have also been trying to read in a sentence and I found out about " %[^\n] "which seemed pretty cool at first.. but when trying to use it in a loop that gets input from the user it gets ugly

cl
join shbcf.ru