typedef

Can someone teach me typedef using simple examples?

I get that it can be used this way:

1
2
typedef unsigned int car;
car newVar;


that will make newVar have the type unsigned int, but can we get into more advanced examples and practical uses?

I've seen it used in templates but my understanding starts to drop.

thanks.
Thanks Tarik. I think I have what I wanted and now I'm viewing his videos as well.
Topic archived. No new replies allowed.