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

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
60,883
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 I 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, 7 dislikes

Link to this comment:

Share to:

Top Comments

  • I'm learning alot.. this is way better than in school :]

  • 4 people fail at c

see all

All Comments (96)

Sign In or Sign Up now to post a comment!
  • anyone please give the link for next video in this series??

    

  • 5 people are transgenders!

  • @jemgaleon

    main is nothing else than any other function, except for being the starting and mostly ending one, the Big Boss if you want...

    if you use void it means the function won't return a value. He used int because it would require too much time for one video to explain what arguments are when you start a program...

  • @igli2pac

    1. scanf is used for reading the input from the user until he presses ENTER. It is much better to use getchar to record ONE character from the user and put it into a CHAR variable instead of recording an unlimited user input and hoping he doesn't input more than one character. Because if he does do so and put a whole string in a char, it will break the program...

    2.scanf is considered "unsafe" because it can sometimes produce unexpected results

  • why use int main ( ) instead of void main ( ) ? =)

  • Why you don't use scanf instead of getchar? :O

  • @TheNanoStuff for more info (and a better explanation xD) gidnetwork (dot) com (slash) b-61 (dot) html

    (why u no let us post links utoob)

  • @TheNanoStuff system(PAUSE) is an actual call to an underlying OS function, whereas getchar() is a stdio C function...getchar is just lighter and more portable...A lot of people will do something like:

    printf("Press any key to continue. . .");

    getchar();

  • Thanks I've learnt so much off of these tutorials I'm 13 and an aspiring games programmer so I have been learning C this has taught me soo much, shame you have stopped making them

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