Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Part 2: C Programming Tutorial 3- Strings and Char Data Type in C: Game Programming Series

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
39,770
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Aug 28, 2009

http://www.learntoprogram.tv
Follow me on Google+: http://www.MarkLassoff.com
Follow me on Twitter: @mlassoff
This is part II of a two part video.

The C Programming language is a great place to start for anyone who would like to learn computer programming. C is relatively easy to learn but can be very powerful While its a much older language and not object oriented, it can be used to develop almost any type of application-- including video games. The C programming language has been used in colleges and universities for years and continues to be used all over the world.

This series will continue through the basics of C programming and teach C for the creation of simple video games. The Gameboy Advance platform will be used later in the course.

To do this tutorial yourself you'll need to download a C compiler and editor. LearnToProgram.TV recommends Dev C++ by Bloodshed.

This third C Programming Tutorial Video will show you how to use the char data type, get input from the user and use strings. In addition two string functions are discussed.

Mark Lassoff, of LearnToProgram.TV hosts the program. Lassoff is a professional programming trainer and has been in the field for ten years. For more information and videos, please visit www.LearnToProgram.TV.

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (LearnToProgramDotTV)

  • 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.

  • @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.

  • 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!

see all

All Comments (76)

Sign In or Sign Up now to post a comment!
  • @wiggium thats right it was a mistake

  • Hi, you said that %d signifier showed that it was a double, however in previous videos I thought you said %lf was a double?

  • 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?

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

  • Thank you very much! :)

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

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