Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

How to become a games programmer

Name: Anonymous 2007-08-13 6:52 ID:jpLp6ZBb

1. Learn C++. Possible alternatives: C, C#. If you are a fag: Java, Haskell or Python.
2. Learn Calculus
3. Learn Linear Algebra
4. Learn classical physics
5. Learn a 3D API. OpenGL or Direct3D.
6. Learn how to play sound get input etc on your target system.
7. Read about game engines and how to make them.
8. Make Game
9. Profit

Very simple. Good luck.

Name: Ritchie 2007-08-17 22:20 ID:yfuYxwQ/

There are only a few basic data types in C:

char    a single byte, capable of holding one character in the local character set
int    an integer, typically reflecting the natural size of integers on the host machine
float    single-precision floating point
double    double-precision floating point

In addition, there are a number of qualifiers that can be applied to these basic types. short and long apply to integers:

   short int sh;
   long int counter;

(...)
5.5 Character Pointers and Functions
A string constant, written as

   "I am a string"

is an array of characters.  In the internal representation, the array is terminated with the null character '\0' so that programs can find the end. The length in storage is thus one more than the number of characters between the double quotes.
(...)

No, I'm not K&R. the above, though, was quoted from the book. Even though it's true, strings are not built in in the C programming language, still, the fact that string constants ARE defined in the C language, and moreover, that the internal representation of string constants is fixed (plus all the string functions in the C standard use this same representation), does point to this idea:
The internal representation of strings as array of characters plus '\0' is specified in the C standar.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List