Home » SIRTECH CLASSICS » Jagged Alliance: Unfinished Business » Vanilla Modding » Question for all the White-Hats and C++ programmers
Question for all the White-Hats and C++ programmers[message #101782] Fri, 20 August 2004 14:36 Go to next message
JSF is currently offline JSF

 
Messages:8
Registered:March 2004
Location: Ontario, Canada
How did you learn to use C++ Programming, did you learn it in highschool, college, university, books, friends, internet, and how much time have you spent learning it? I ask this because I want to learn C++ too but I want to know how I should start(school, books, or the internet).

Report message to a moderator

Private
Re: Question for all the White-Hats and C++ programmers[message #101783] Fri, 20 August 2004 23:44 Go to previous messageGo to next message
Batman is currently offline Batman

 
Messages:363
Registered:January 2001
Location: Gotham City
I guess I would say it depends on whether or not you already know another Programming Language, for example: BASIC. If you are already familiar with the concepts of "Structured Programming" then you could probably pick up a C++ book and teach yourself.

However, if you have never programmed before, you may wish to take a class of some type. Whether you take the class at a college, a specialized school or the Internet should probably be determined on how well you can absorb the information. Again, you may want to visit a library and take a look at a few books. If it all appears "Greek" to you, you may want a "live" instructor to guide you.

Report message to a moderator

Master Sergeant

Re: Question for all the White-Hats and C++ programmers[message #101784] Sat, 21 August 2004 10:45 Go to previous messageGo to next message
JSF is currently offline JSF

 
Messages:8
Registered:March 2004
Location: Ontario, Canada
I have some BASIC, and I mean basic understanding of VB...6 I believe, and I have used Pascal before in highschool, but that was a couple years ago. I think I'll but "C++ For Dummies" and a couple other books. Very Happy

Thanks for the help Batman.

Report message to a moderator

Private
Re: Question for all the White-Hats and C++ programmers[message #101785] Sat, 21 August 2004 12:09 Go to previous messageGo to next message
Khor1255 is currently offline Khor1255

 
Messages:1817
Registered:August 2003
Location: Pleasantville, NJ
Eddies guide to C is what I've been messing around with. Can't say I've gotten very far but the good thing about this online tutorial is that from the very beginning it prompts you to actually write code and you are tested each lesson. If I had greater attention span I'm sure I'd be well on my way.
This tutorial is free so you might want to give it a try.

Report message to a moderator

Sergeant Major
Re: Question for all the White-Hats and C++ programmers[message #101786] Sat, 21 August 2004 13:42 Go to previous messageGo to next message
Chris Camfield is currently offline Chris Camfield

 
Messages:68
Registered:February 2000
Location: Toronto, Ontario
If you really want to learn C++ I recommend "Accelerated C++" by Koenig and Moo.

http://www.acceleratedcpp.com/

However if you want to learn to code stuff for JA2, it's really not C++ code, just C.

Report message to a moderator

Corporal
Re: Question for all the White-Hats and C++ programmers[message #101787] Sun, 22 August 2004 02:31 Go to previous messageGo to next message
JSF is currently offline JSF

 
Messages:8
Registered:March 2004
Location: Ontario, Canada
Thanks for the input. Hey Khor1255 I have also been using Eddie's Basic Guide to C Programming, I got up to section D>>Controlling Program Flow before I quit cause it got too complicated. I'm gonnna try to take it up again.

Koenig..........now where have I heard that name before?

Report message to a moderator

Private
Re: Question for all the White-Hats and C++ programmers[message #101788] Sun, 22 August 2004 10:48 Go to previous messageGo to next message
Snap is currently offline Snap

 
Messages:286
Registered:September 2000
Location: USA (by way of the Old Wo...
Sounds like you could benefit from taking a class. If that's an option for you, I would say go for it.

The book on C++ is, of course, "The C++ Programming Language" by Stroustrup (the latest edition). It may be too hard for a beginner, but if you are serious about learning C++ get it anyway - you'll want to read it sooner or later.

Also look at this list of beginner C++ book reviews. Look for "Highly Recommended" ones ("Accelerated C++" is one of them):

http://www.accu.org/bookreviews/public/reviews/0sb/beginner_s_c__.htm

Report message to a moderator

Master Sergeant
Re: Question for all the White-Hats and C++ programmers[message #101789] Fri, 27 August 2004 22:18 Go to previous messageGo to next message
Jujigatame is currently offline Jujigatame

 
Messages:38
Registered:March 2004
Location: Oxford, UK
*cough*

Snap, the code is in C, not C++.

Report message to a moderator

Private 1st Class
Re: Question for all the White-Hats and C++ programmers[message #101790] Sat, 28 August 2004 05:45 Go to previous messageGo to next message
Snap is currently offline Snap

 
Messages:286
Registered:September 2000
Location: USA (by way of the Old Wo...
So? The question was about C++.

BTW, someone has already ported the code to C++, no?

Report message to a moderator

Master Sergeant
Re: Question for all the White-Hats and C++ programmers[message #101791] Sat, 28 August 2004 10:04 Go to previous messageGo to next message
Mysterious Dr.X is currently offline Mysterious Dr.X

 
Messages:33
Registered:March 2004
Location: Croatia

Yes someone already ported the code to C++, but don't ask me for names, I downloaded it somewhere here I think Wink .

Report message to a moderator

Private 1st Class
Re: Question for all the White-Hats and C++ programmers[message #101792] Sun, 29 August 2004 12:24 Go to previous messageGo to next message
Lynx_Rulzz is currently offline Lynx_Rulzz
Messages:2
Registered:July 2004
Stay away from the for Dummies books.

Report message to a moderator

Civilian
Re: Question for all the White-Hats and C++ programmers[message #101793] Wed, 01 September 2004 00:24 Go to previous messageGo to next message
defrog is currently offline defrog

 
Messages:235
Registered:March 2004
Location: Austria
better suggestion is to play with modifying simple programs written by others... example programs, etc...

then try to write simple programs to do simple task... and keep building on it...

reading books on it is great... but reading straight through a book is useless when you first start learning....

be ready to get frustrated... and to fail to write some of your first simple programs.

C code or a mix of C & C++ might be easier to start with...

to answer your question I began learning C at age 13... took pascal/basic courses in highschool (and almost taught them due to a textbook dependant teacher) was very proficient by the time I went to university to start my CS degree.

highschool & university is useless for learning the language! time?? tons!

I posted a source that will compile in the strict C++ enviroment... hesitate to call it "ported", but with that code you can extend using C++ techniques!

Report message to a moderator

Sergeant 1st Class
Re: Question for all the White-Hats and C++ programmers[message #101794] Thu, 02 September 2004 15:23 Go to previous messageGo to next message
ebuck is currently offline ebuck

 
Messages:123
Registered:August 2004
Location: Houston, TX
I know that C++ is all the rage, but plot your course before you rush into things.

C++ can be used several ways, the most popular of which include:

1. C++ as a better C.
2. C++ as an object oriented programming language.

My suggestion is to figure out which one applys to you.

If you use C++ as a better C, grab a C programming text book (from you local community college / half price bookstore) and start reading. You'll know if it's really a text book by the number of problems it has (for homework assignments) at the back of the chapter. (A classic is "How to Program C" by Dietel and Dietel)

If you use C++ as an object oriented programming language, grab a copy of the Java Developer's toolkit from SUN, and the latest copy of "Learning Java" from O'Reilly Publishers OR "Thinking in Java" by Bruce Eckels. Then after you start to understand the language, start learning about patterns.

Of course, there's other ways to use (and abuse) C++, and other paths to take. But generally, there's a few guidelines that I like to (sometimes) adhere to:

1. Realize that learning how to program and learning a programming language are two different things. Learning how to program is similar to learning how to write a good essay. Learning a language is similar to learning about grammar and sentence structure.

2. Avoid "for Dummies", some people like the manner in which it's presented, but the buddy-buddy chat style has a high amount of fluff to content ratio. Try to buy books which are reguarded as staples of the computer science program at your nearby school / university.

3. There's a few good publishers who have made a name for themselves by writing excellent computer books. O'Reilly, New Riders, Addison Wesley, Prentice Hall, and perhaps a few others.

4. After you learn your first language, learn another. Most languages are related, and you can gain insight on both which language to use for a particular project (right tool for the job) and how to better use a language you already know.

5. Read good code. You'll get better ideas on how to solve your problems in a clean manner. Good code is clear, avoids repetition, does the job, and can be modified without deep knowledge of every other piece of code in the program. Bad code lacks some (usually all) of these features.

Report message to a moderator

Sergeant
Re: Question for all the White-Hats and C++ programmers[message #101795] Fri, 10 September 2004 05:49 Go to previous messageGo to next message
ebuck is currently offline ebuck

 
Messages:123
Registered:August 2004
Location: Houston, TX
Snap mentioned "The C++ Programming Language" by Stroustrup which is an excellent book on C++, and should be part of any approach in learning C++. But I find that the 3rd edition isn't nearly as clean or easy to read as the 2nd edition.

The 3rd edition suffers from trying to do too much. I guess that's why I use the 2nd edition if I have a problem understanding something, and the 3rd edition if I need to look up the particular format of some library call.

Report message to a moderator

Sergeant
Re: Question for all the White-Hats and C++ programmers[message #101796] Fri, 10 September 2004 06:48 Go to previous message
Puma is currently offline Puma

 
Messages:50
Registered:February 2004
Location: Sweden

Quote:
Originally posted by Edwin Buck:
5. Read good code. Good code is clear, avoids repetition, does the job, and can be modified without deep knowledge of every other piece of code in the program. Bad code lacks some (usually all) of these features.
In other words, do NOT read the JA2 source code! Very Happy

Report message to a moderator

Corporal
Previous Topic: crypht files
Next Topic: Adminstrative Questions
Goto Forum:
  


Current Time: Fri Jan 24 20:21:35 GMT+2 2025

Total time taken to generate the page: 0.01704 seconds