FAQ  •  Login

Help on C++

<<

gottimw

User avatar

Specialist
Specialist

Posts: 110

Joined: Sat Jul 12, 2008 12:43 pm

Post Mon Oct 27, 2008 11:04 pm

Re: Help on C++

My advise is:
By some C++ book. Its way better then picking bits and pieces of the internet (although the cplusplus.com is very helpfull)
But the book explains stuff way better plus all of the books tends to show you the information in some logical order. So you move from basic to more advance stuff.
I think important part of the book that you should buy is explanation of what is actually happening in PC.
C++ is the fastest language but it trades safety for speed ^_^
So you need understand what you r doing.

Example in Java:
int someArray[10];
//initialise arry content
array[11];

this will give you an error

In C++ it will be valid!! And you will actually access some random memmory address ^_^

It was a bit messy, wasn't? Anyways in one sentence:
C++ BOOK is my little advice
We are shaped by fate just as we shape iT
;/
<<

joff

User avatar

First Sergeant
First Sergeant

Posts: 787

Joined: Sat Oct 25, 2008 2:44 am

Location: Reading / UK

Post Tue Oct 28, 2008 5:26 am

Re: Help on C++

I picked up most of mine through the web, As long as you have a brain and a bit of common sense it isnt really that hard.

Biggest problem is debugging as with any language (as you have seen over the past 2 nights Dan)

Best way to learn is to grab open source software and rip though the code, or even commercial software if you are into the reverse engineering.
Programmer / Web Designer / Server Admin
www.joffcom.net
www.pontification.net
<<

Craziestdan

Warrant Officer 1
Warrant Officer 1

Posts: 1043

Joined: Wed Mar 26, 2008 2:36 pm

Post Tue Oct 28, 2008 10:37 am

Re: Help on C++

Getting some free source code is definetly a good plan.
I like downloading sources to stuff like a sound media player, or bitmap viewer :D

(don't be surprised if you see me releasing a media player one day ;))

Gottim, arrays, are possibly one of the easiest things in C++ in my opinion. Not too hard to learn, but they are easy to remember how to work them.
<<

gottimw

User avatar

Specialist
Specialist

Posts: 110

Joined: Sat Jul 12, 2008 12:43 pm

Post Thu Oct 30, 2008 3:52 pm

Re: Help on C++

yeah the arrays are hadny but have a few flaws like their length must be specified at preprocessing level- you cant make array longer shorter at client level (thanks God for vectors :) )

Well i started learning from web but my friend gave me advice to but c++ book. And i could see a difference in learning pace plus i can always look up my book :D

I am not saying that its bad idea to learn from web. I meant that for me book was way better to learn it
We are shaped by fate just as we shape iT
;/
<<

joff

User avatar

First Sergeant
First Sergeant

Posts: 787

Joined: Sat Oct 25, 2008 2:44 am

Location: Reading / UK

Post Thu Oct 30, 2008 6:54 pm

Re: Help on C++

i always find web best, although i do have c++ books they only cover little things, where as on the web you can normally find what you want and learn from that.

For example 3 books that are recommend for beginners are:

"SAMS teach yourself c++ in 24 hours"
good book covers some useful **** and has a cd with samples on it, It is basically 24 chapters each take roughly an hour.

"C++ For Dummies""
Although the name dosnt do anything useful for it, i mean come on would you buy a book with "for dummies" in the title. As with all the range of these books they are very good if you dont know anything about programming and what to learn some history behind the language.

"c++ in easy steps"
My personal favourite out of the 3 recommend has a lovely "cheat sheet" in the cover to help with the more common syntax commands but does assume you know a little of the language before you start, has useful tips on what to avoid aswell.

The problem with books is they do not normally cover alot on errors, and as a programmer my main problem is errors no matter how good you are you will always get some random code whether it is faulty syntax like C20** or badly linked files/subs LNK**** in my opinion a book dedicated to c++ errors would be more useful than any other book out there.

However with the internet you can just google your error and normally find a fix whether it is on MSDN, Google groups, Code Junkies or even the subscription based Expert Exchange.

I honestly do love programming and some of the stuff you can do is awesome like "Augmented Reality" which is basically showing items on a web cam that are CG there is a good youtube example of this where a guy has a table set up with his markers and can make the CG model bigger or smaller by moving his hand over a certain one.

The future of everything is in code
Programmer / Web Designer / Server Admin
www.joffcom.net
www.pontification.net
<<

Craziestdan

Warrant Officer 1
Warrant Officer 1

Posts: 1043

Joined: Wed Mar 26, 2008 2:36 pm

Post Thu Oct 30, 2008 8:41 pm

Re: Help on C++

Code is definitely the thing to learn. I think webs are the best too to learn, although I've never done a book, because I haven't needed to. I find an error, it's always on google. I finish a chapter, and want more, it's always on google ^^

Anyone else here who hasn't yet, should get themselves into C++, it really is an amazing thing to learn.
<<

joff

User avatar

First Sergeant
First Sergeant

Posts: 787

Joined: Sat Oct 25, 2008 2:44 am

Location: Reading / UK

Post Fri Oct 31, 2008 5:01 am

Re: Help on C++

i know its a bit off the subject but learn PHP and XML aswell
Programmer / Web Designer / Server Admin
www.joffcom.net
www.pontification.net
Previous

Return to Programming

Who is online

Users browsing this forum: No registered users and 2 guests

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.