CT GunZ Server
Would you like to react to this message? Create an account in a few clicks or log in to continue.
CT GunZ Server

CT GunZ EN-Forums
 
HomeHome  PortalPortal  Latest imagesLatest images  SearchSearch  RegisterRegister  Ger Forums  GunZ Register  Server  VOTE please  Be Donator  Download CTGunZ  Log inLog in  

 

 Coding TuT 3

Go down 
3 posters
AuthorMessage
bossxd
BANNED
BANNED
bossxd


Male

Number of posts : 21
Location : usa
Points : 64
Character : Noname
GunZ Exp (nub/pro) :
Coding TuT 3 Left_bar_bleue0 / 1000 / 100Coding TuT 3 Right_bar_bleue

Registration date : 2009-04-12
Reputation : 0


Coding TuT 3 Empty
PostSubject: Coding TuT 3   Coding TuT 3 EmptyTue Apr 14, 2009 10:40 am

How to start coding in C/C++

Beginnings

Everyone has to start somewhere and I started with C. Some say it's too hard for beginners, recommending Java, .NET, Perl . . .

I disagree. C is a strong, powerful language, almost unlimited in the scope of the programs and techniques that are possible. This power has a price and this is why some won't recommend C or C++ to beginners. It is very easy to make horrendous and catastrophic errors in C. I have written several programs that contained bugs that trashed my own system. Don't experiment with C unless you are prepared to repair the system when it goes horribly wrong. Later in this series, I'll take a quick look at preventing these kinds of errors, but C has the power to surprise you and throw you a problem that you simply had not considered. This is the attraction and the skill of programming in C - it is always a challenge and will test your problem-solving skills.

C programs can be simple and this is how I learnt the language. Always keep your code simple, keep your ideas clear and your comments full and descriptive. Simple C programs mean console or terminal programs - this is where you can learn the craft of C without the complications of extraneous GUI code. In the "bad old days" of BL (before Linux), this was called DOS programming. DOS has been suppressed in recent versions of Windows which makes it much more difficult to write these simple programs. GNU/Linux has not made that mistake and retains not only a command line but a complete console interface - many components of GNU/Linux can only be accessed from command line tools.

So this series will concentrate on these principles:

An introduction, not a HOWTO.
Simple console programs only, no GUI projects or code.
Standard libraries and tools in most cases.
Concentrating on learning the code, not writing a complete program.
Small, clear examples covering discrete areas, not an entire syllabus.
Everything I learnt about C and C++, I taught myself using books, experimentation and the internet. Some of my techniques will not get the approval of more experienced or better trained hackers or university lecturers. I can't cover areas of code that I haven't had to use, it's a simple, no frills introduction.

By concentrating on standard libraries and tools, I hope to provide a baseline that can give you a foothold on all platforms. The examples will be GNU/Linux based but the principles and techniques are applicable wherever a C/C++ compiler is available.
Back to top Go down
Snake
Retired Staff
Snake


Male

Number of posts : 3572
Age : 31
Location : UK
Points : 3473
Character : Coding TuT 3 Snake11copy-1
GunZ Exp (nub/pro) :
Coding TuT 3 Left_bar_bleue99 / 10099 / 100Coding TuT 3 Right_bar_bleue

Registration date : 2009-02-02
Reputation : 27


Coding TuT 3 Empty
PostSubject: Re: Coding TuT 3   Coding TuT 3 EmptyTue Apr 14, 2009 2:47 pm

Nice...
Back to top Go down
Tittenfee
Retired Staff
Tittenfee


Warnings : 2.99
Male

Number of posts : 2522
Age : 30
Location : Austria, Vienna
Points : 2583
Character : Tittenfee, _NPC_
GunZ Exp (nub/pro) :
Coding TuT 3 Left_bar_bleue69 / 10069 / 100Coding TuT 3 Right_bar_bleue

Registration date : 2009-01-22
Reputation : 22


Coding TuT 3 Empty
PostSubject: Re: Coding TuT 3   Coding TuT 3 EmptyWed Apr 15, 2009 9:48 am

cool *spams with snake together*
Back to top Go down
Sponsored content





Coding TuT 3 Empty
PostSubject: Re: Coding TuT 3   Coding TuT 3 Empty

Back to top Go down
 
Coding TuT 3
Back to top 
Page 1 of 1
 Similar topics
-
» Coding TuT 11
» Coding TuT 12
» Coding tut
» Coding TuT 2
» Coding TuT 4

Permissions in this forum:You cannot reply to topics in this forum
CT GunZ Server :: Basket-
Jump to: