Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (76)

Sign In or Sign Up now to post a comment!
  • Hi, you said that %d signifier showed that it was a double, however in previous videos I thought you said %lf was a double?

  • @wiggium thats right it was a mistake

  • Answer the Question please:::

    How do I handle key presses and key up events in the windows message loop? I need to be able to call two functions OnKeyUp (char c); and OnKeyDown (char c);???

  • when are you going to post the next video?

  • umm..when you made the character for your last name at 5:56. You created 10 elements but 'Lassoff' only contains 6 elements. What happens to other elements left? Thanks!

  • @ParamjitGill1 The memory for the remaining indexes will remain allocated but not initialized. 

  • Amazing tutorials! Simple to follow and give you good concept.

  • Thank you very much! :)

  • I've subscribed. Please make some more C tutorials. -Cheers.

  • Thank you for these videos I am learning a lot!

    But I do have a question, either I have not heard correctly or you have not explained.

    What is the '\0' for? I don't understand it at all... but I do understand the rest of the video.

  • 5:16

  • does defining the character length with [10] give the max amount of characters you can use, because i have used [10] and set the variable to a string of less letters then 10 and it works fine.

  • i cant find your next video is this your last one ?

  • quick question i noticed when i changed char name [10] = { ' \ 0 ' }; to char name [5] = { ' \0 ' }; and then i typed anthony it still worked as is the 5 was a 10 i thought the 10 told the program that the word anthony had to be 5 letters long

  • ya this lesson was a lil hard but i think i understand it it was just alot being said and learned at once but still a great video

  • u really made me understand the intros of c as they were giving me headache

  • @LearnToProgramDotTV I sometimes see code like printf("Length is %zu\n", strlen("hello"));... What is %zu used for? Additionally, I typed your strcat code up and ran it on ideone.com where it gave me the error SIGSEGV (and a wikipedia link to describe it). What does that mean?

  • @n00peh %zu is the sizeOf operator. It will return the number of bytes the datatype used takes in your machine's particular architecture.

    I haven't tested anything in ideone.com, so I can't really address your comment about that. Sorry.

  • @LearnToProgramDotTV Oh. I tested it in my debugger which seems to indicate something is wrong with strcat(userName, lastName);...

  • @LearnToProgramDotTV I get a crash too, with microsoft visual c++ 2008 express it tells me: Run-Time Check Failure #2 - Stack around the variable 'userName' was corrupted.

    I ran it in Dev-C++ and it seemed to work at first, but then when I changed the lastName string to something longer (130 characters) it brought up "Lassoff_Example.exe has encountered a problem and needs to close. We are sorry for the inconvenience." When I tried "Debug" instead of "Run" it caused devcpp to crash!

  • i have a problem

    during printf(your name etc

    it wont run because it says 'synatx error before printf

  • Thanks. Help a lot.

  • thank you sir

    

  • Do you realize that you're invoking undefined behaviour (thus a potential crash) in here? userName only has room for 5 character (incl. the terminating \0), and you're adding 7 more to that.

  • why getchar() twice? :P

  • Where is part 4? I'm learning so much from you! I really hope that you continue the C tutorials!

  • %d is for decimal, meaning integer..... i think double is %lf.... but this does not take away how good the tutorial is, its really helpful thanks

  • thanks soo much mark! your tutorials made my life a lot easier!! you should be a professor!!

  • Need more C tutorials! These are the only good ones! :(

  • HELP :D i cant use stdio.H :S how can i downlaod the Stdio and download it so i can use it (vista) hope u guys understamd:S

  • when I compile the file the consolee window opens up only to display your name is M but I can type in the rest. why is not showing up with the name already pre-typed in the window?

  • %d is an integer not a double, %lf is double

  • @bondservant4Him agreed

  • great vids keep the brilliant work up Mark!

  • I couldnot find the next part turorial.

  • Thanks for another brilliant episode of programming goodness!

  • you say %d is a double, i thought it was a int?

  • Please continue onto this series, I love these tutorials!

  • why do we need getchar() ? wht is getchar() function used for?

  • @kuha5ster To get an imput and not to close the program.

  • @kuha5ster makes it so that when the console appears it doesn't instantly disappear

  • Please make a tutorial 4!

    I love your series and i have subscribed and rated!

  • these tutorials are simply amazing, and your voice is clear and easy to listen to

    astounding teacher

  • u r greaat  sirrr.....excellant

  • ur tutorials are great!! even an elementary student can follow and learn from this.. i'll subscribe..

  • I have started to get ahead of what is happening in the video at times. I think this means im learning :)

  • %d returns a integer not a double. A double is %lf

  • your tutorials are amazingly easy to understand please make some more

  • I have tried this Tutorial.

    The code do not work for me

  • Fuck im confused...

  • on strings i am getting warnings source files not compiled?

  • Hey guys,

    If ur having any trouble with this stuff just sign up to : programminghelper.webs.com : the site offers completly free help. FREE signup. FREE tutorials. FREE videos

  • very good tutorials

  • wow.. Lassoff, kinda like a longer laughing my ass off... haha.. just joking..

  • Was this the last in the series?

  • Kinda lost me at the end.

  • You really should teach to use scanf() with a length specifier to avoid buffer overflows. The "name" example is vulnerable to buffer overflow because you haven't specified a length of characters to read in.

    scanf("%s", name);

    Should be replaced with:

    scanf("%10s", name);

    If you know the length of the buffer, then there's no good reason not to specify how many bytes to read. =)

  • Console.WriteLIne("What is your name?");

    string name = Console.ReadLIne();

    Console.WriteLIne("Hello" + name + "How are you doing");

  • Tutorial 1and 2 were easy but this one confuses me X_x

  • @jigglethat Same here! I find 2:01-5.00 really hard to understand!

    

  • @TheChemistSupreme i'M not really good with C++ but if you look at it the same in C# it looks as if hes creating a array.

  • These guys are great man haha. First time i've ever touched stuff like this.

    With your part at the end where it had firstString secondString and all that I took a bit of initiative and made it add them together to tell me how many characters there were altogether :P I was quite proud :D. Keep the awesome guides coming

  • now i dont get it *-(

  • Please make more about C. Thank you for 3 episodes.

  • did you make any new tutorials in this series? Your tutorials are excellent.

    Thanks

  • Thanks so much for saying so! I have a couple of new tutorials out, but nothing new on C. Hopefully this week or next I'll have some more. If you subscribe to my channel, you will be notified whenever I come out with a new tutorial. Thanks again!

  • Metallic voice can ruin your program!

  • strcat is the gluing how do I unglue some amount in the middle what function is that.. like

    MarkLassoff..

    I want to remove Lass.. to get

    Markoff

    what function is that? i'm trying to make a buffer with removing data anywhere inside .. then joining the left over to make a new data? or there is no such function? not talking about sub stringing.. i want 1 single function

  • strlen counts up to the null terminator \0.. if you add that in the beginning it would say size 1.

  • thx for this tuts...make some continues.

  • thanks man. you really deserve more views.

  • Thanks so much for these tutorials! Please make some more! :)

  • thank you so much please make more soon

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more