I'm a computer science teacher and created this channel to help my students follow along in their courses. I hope you will grow to love computer science as much as I do.
Or... just read a string and parse the integer. That is the easier way. scanf is not intended to be used as user input. scanf is a formatted input and, such as, you need to know all types of the input and the sequence of their occurrence. And that info is into the man page. C is not for beginners!
Question, since appending to list is linear time, whereas prepending would be constant, was the choice for the former meant to illustrate list traversal? Just curious since it seems simpler conceptually simpler and more performant to prepend. Thanks so much for your videos btw! Really appreciate the format and work you've put into them
That is a fantastic observation. Yes, in my example, insertion is O(n) because of the list traversal. You are correct, that putting the new item at the front would be O(1) and a good performance improvement if you do not need to keep the linked list in order of found Easter Eggs. Another way to do this would be to keep a pointer to the end of your linked list if you know that you will be frequently inserting to the end. Thanks for watching and commenting!
Can python script use this as sector writer ? As hard drive manipulation it would be helpful if this can be used as output writer into hard drive sector 😅
Hello i am from india,i'm a first year student in my college, i just started learning C++ and i completed learning upto functions, i understood your video very well, thanks a lot and also give me some tips to become a proficient programmer, please continue this series, ill recommend to my friends also.
how about if i entered a combination of numbers and letters? my program requires integers. for example, i put "98eg" it should return an error too. but when i entered 98 only, it'll perform what my program is supposed to do
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 😂
Hey Heather! I just searched for "python hex editor" and this was the first thing that came up! Very cool. I didn't even know you were a computer science teacher.
I was getting error messages during linking. I Googled it, but no help. You were the only one to mention Winmm.lib. I added it, and it started working. I signed in to RU-vid just to thank you.
Thank you, I forgot about cin.ignore til I saw this - my try/catch was whack and this almost completely handled my error condition. Still a few hiccups but, this is the right direction. Anyway thanks a bunch :)
Hi there, could you do a video of writing, say, instances of classes to a binary file for storage? I'm thinking of doing that for my own program but I'm not exactly sure how to go about it.