02.01 - The C Language

Started by
21 comments, last by Teej 19 years, 11 months ago
Why C? There is a distinction that can be made between an algorithm and its implementation. If I tell you how to manually convert Celsius to Fahrenheit, you can write a program that performs this operation in any one of many programming languages, and the end result would be essentially the same. Similarly, if I outlined the technique of scrolling the display, it would be equally as useful regardless of the actual language used. Of course, that’s not to say that any programming language is equally as capable. There are a few common languages that meet the criteria for writing games, and each has its pro’s and con’s. For instance, Visual Basic is touted as a simple and intuitive general-purpose programming language, but it is considered less than ideal when speed is a priority. So why C? The C language is perhaps the most popular programming language, and is used for everything from operating systems to games. And all for good reason – C is blazingly fast, superb in its level of control, and is highly expandable. In my experience, C offers the best compromises for game development. Frankly, I’m not giving you much of a choice. Currently, all code examples in this forum are in C, and that’s for the simple fact that it’s my language of choice. My only point is that it may very well be the best choice regardless. In a nutshell, you can go ahead and apply what’s covered in this forum to any language/platform you wish, but you’re on your own if it’s not in C. C Language Resources There are a couple of places I can direct you to if you’re looking to learn (or continue learning) the C language. If anyone has any other links, please share them with us. www.informit.com contains a few complete online books that teach the C language. And best of all, they’re free! www.cprogramming.com contains a C++ tutorial; much of the information is essentially straight C though… Questions or comments? Please reply to this topic.
Advertisement
i am interested in designing games but i am not interested in programing, what other steps are there for me to take to brake into the industry? I have some graphics design experience (not much) and a little bit of training in photoshop and illustrator as well as being A+ certified. I have thought about enrolling into Digipen, but im not sure if i want to go that route yet.
Also i was wondering what the average saleries of those involved in the production of a game?
C/C++ tutorials from HELL

Any of you with no experience in C/C++ or even in programming, is highly recommended to visit Gordon Dodrill''s site and have a look at his Coronado Enterprise tutorials serie:


Coronado Enterprise homepage
C/C++ tutorials from HELL

Any of you with no experience in C/C++ or even in programming, is highly recommended to visit Gordon Dodrill's site and have a look at his Coronado Enterprise tutorials serie:


Coronado Enterprise homepage

Btw, I'm sorry for the double post. If anybody knows how to delete an anonymous post, just do it, thx.

Edited by - Bifff on April 18, 2001 6:28:54 AM

A site i found very useful for a general introduction to the C language was www.howstuffworks.com/c.htm . This site is full of information on everything, so i was suprised to find such a great tutorial on C.
Well, I don''t know how legal this is, but if someone doesn''t find the given C tutorials sufficient, here are some good books for download:
http://www.psyon.org/archive/e-books/programming/c/index.shtml

Again, moderators: delete this if it''s illegal...(which it probably is)

*** Hi! I''''m a signature virus. Copy me into your signature to help me spread! ***
*** Hi! I''m a signature virus. Copy me into your signature to help me spread! ***
A bit off topic since we will be focusing on C, but Bruce Eckel offers several Text Books for free, that he sells commercially, on his web site, http://www.mindview.net/Books. His free books include C++, Java, Python and design patterns. These are VERY good books and are used as college text books.

Edited by - Xavior on May 20, 2001 2:24:56 AM
Hi all!

I am a newbie at programming. I followed the link to Informit on the web and found a complete book of Sams - Teach yourself C in 24 hours. I am about halfway in the book. I have also downloaded a few tutorials in C programming to learn how to program in C.

Every tutorial begins with the classical "Hello World" program, that I think you all are familiar with. A program that writes Hello World on the screen. But hey... Why on earth would anyone want to do that? My point is: Why does all tutorials (at least the ones I found) teach you how to do things in DOS? I don´t want to do ANYTHING in DOS! I my opinion, DOS is dead... (Hope I don´t offend anyone...) I just love Windows, whith all those nice OK and Cancel buttons... I want to write my programs in that platform.

I hope you can help me out here. Is there any reason for me att all to continue learning from this book and those tutorials? None of them covers anything about Windows. Sure, I have to learn to crawl before I start to walk, but am I crawling the right direction??? I just don´t want to waste my time... Perhaps I am a little impatient, but hey: That´s just how i am :-)

And secondly, if there isn´t, what do you guys think that I should try with, so I can learn C language in the Windows environment instead of the boring DOS?

The source codes provided that I have seen from some of this forums pages does not contain anything that I have learned from the book or tutorials. Well, maybe a few functions and stuff, but almost everything looks completely unfamiliar to me...

So please friends. Write a few lines of encouragement to me... I really want to learn myself to make applications and games, but I´m feeling lost here.

This is my first post in this forum (except for the Enrolment Roster). Sorry if I write to long. I´ve always had a hard time to get to the point :-)

Hope you can help me. I would appreciate it very much.

Anakha
Anakha,
I just enrolled too. Andre La''Mothe has an excellent beginning Windows Programming tutorial in his book _Tricks of the Windows Game Programming Gurus_. It basically shows you only what you need to get a full screen "console" running in windows so you can blit pixels and do page flipping, double buffering and all that other fun graphics stuff :-)
8-)>
Thanx Mhaynes!

Perhaps I will go for the book then. I think books are better than tutorials to give a good foundation to build on. Tutorials seems to be good to refresh things and get other things going when you have a good understanding in the first place.

This topic is closed to new replies.

Advertisement