AVForums

Our philosophy in our forums, reviews, podcasts and feature videos is to promote audio and visual excellence by gathering and sharing the best information and resources available.

Help

To begin please visit our help section »

Not a Member Yet?

It only takes a minute to start enjoying the benefits of AVForums membership, and it's free!

Member Log in

Learn C++ (eventually for Windows Mobile) ... which book for starters?

Post Reply
Old 09-08-2008, 5:15 PM   #1
Prominent Member
 
Monty Burns's Avatar
Join Date: Jul 2005
Location: Cold, dirty, wet and expensive London.
Experience Points:
11,218, Level: 25
Points: 11,218, Level: 25 Points: 11,218, Level: 25 Points: 11,218, Level: 25
Activity: 18.6%
Activity: 18.6% Activity: 18.6% Activity: 18.6%
Thanks: Gave 394, Got 113
Posts: 3,603
Learn C++ (eventually for Windows Mobile) ... which book for starters?

Hey Guys

i'm going to get into C++ so I can program WinMob and having ordered Programing Windows by Petzold, I quickly realised this is not a "learn c++" book.

Can anyone recommend a book to take me from knowing nothing to genious please? I have assembler experience so not a total newbie but haven't done any for over 15 years!
  Quote
Old 09-08-2008, 6:00 PM   #2
Senior Member
 
coluigi's Avatar
Join Date: Jan 2007
Location: Manchester
Experience Points:
4,322, Level: 15
Points: 4,322, Level: 15 Points: 4,322, Level: 15 Points: 4,322, Level: 15
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Thanks: Gave 47, Got 89
Posts: 1,285
Re: Learn C++ (eventually for Windows Mobile) ... which book for starters?

Most beginners C++ books are fairly good at teaching you the basics but the basics probably won't get you very far (will teach you how to handle simple input/output, program flow, classes, and might touch on data structures and pointers).

So I'd pick up any that you feel is easy to understand, just take a wander into Waterstones and have a flick through a few. From then you'll probably want to learn the specifics on programming for WinMob which I have no experience of - I guess there's some online documentation to learn the platform specific APIs.
  Quote
Old 09-08-2008, 9:57 PM   #3
Member
 
magicdave's Avatar
Join Date: May 2006
Location: Dundee
Experience Points:
4,022, Level: 14
Points: 4,022, Level: 14 Points: 4,022, Level: 14 Points: 4,022, Level: 14
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Thanks: Gave 10, Got 3
Posts: 61
Re: Learn C++ (eventually for Windows Mobile) ... which book for starters?

I'm not too familiar with WinMob, but I'd definitely recommend Straustrup regardless - he was the bloke that created the launguage after all

http://books.google.co.uk/books?id=t...um=1&ct=result

Or, how about "Thinking in C++" by Bruce Eckel? I think you can get it free online too!

http://books.google.co.uk/books?id=d...r:Eckel&pgis=1

After learning the basics, you might want to learn how to apply your new-found knowledge of C++ to a variety of problems. I.e. think about books that discuss design patterns, using the stl etc.
  Quote
Old 09-08-2008, 10:15 PM   #4
Veteran Member
 
GasDad's Avatar
Join Date: Mar 2006
Location: Bristol
Experience Points:
4,993, Level: 16
Points: 4,993, Level: 16 Points: 4,993, Level: 16 Points: 4,993, Level: 16
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Thanks: Gave 1,509, Got 722
Posts: 5,133
Re: Learn C++ (eventually for Windows Mobile) ... which book for starters?

I'd go and get a book on 'C' first - if you can remember any assembly language, then 'C' is trivial.

Then get a book on C++.

Books on programming, I think, tend to be quite personal things, you either 'get' the way the book is handling a topic or you don't. So sit yourself down on the floor in waterstones and find a couple that suit you

Unlike most other languages C and to a certain extent C++ don't hide the hardware that well, so knowing assembly language (even if its not for a modern pc) lets you understand the process (why pointers are 32 bits etc) all that better.

Good luck!

James
  Quote
Old 10-08-2008, 10:29 AM   #5
Senior Member
 
Paul_HDLover's Avatar
Join Date: Jan 2007
Location: Edinburgh
Experience Points:
3,569, Level: 14
Points: 3,569, Level: 14 Points: 3,569, Level: 14 Points: 3,569, Level: 14
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Thanks: Gave 219, Got 93
Posts: 1,149
Re: Learn C++ (eventually for Windows Mobile) ... which book for starters?

You have assembler skills? We need you
  Quote
Old 11-08-2008, 10:25 AM   #6
Prominent Member
 
Monty Burns's Avatar
Join Date: Jul 2005
Location: Cold, dirty, wet and expensive London.
Experience Points:
11,218, Level: 25
Points: 11,218, Level: 25 Points: 11,218, Level: 25 Points: 11,218, Level: 25
Activity: 18.6%
Activity: 18.6% Activity: 18.6% Activity: 18.6%
Thanks: Gave 394, Got 113
Posts: 3,603
Re: Learn C++ (eventually for Windows Mobile) ... which book for starters?

Thanks for all the tips guys!

Did indeed find a book at the weekend and ordered it on Amazon (can't remember which one now). Should be delivered in time for me to take away to my summer sun holiday tomorrow Gona be a bit geeky and sit in the bar reading and learning it on my laptop.

I've also booked myself on an evening course at my local college to teach c++ for beginners which starts a week after i get home ... perfect timing!

Paul, I doubt my, not used in 15 years assembler skills, are much use to you i'm afraid! Besides which, does anyone still use the motorola 680x0 range? Besides which, this isn't a career move, its a hobby and I know of at least one app I want to write that does not exist, specialy on WinMob.
  Quote
Old 11-08-2008, 10:57 AM   #7
Prominent Member
 
Toasty's Avatar
Join Date: Jun 2004
Location: Staffs
Experience Points:
11,035, Level: 25
Points: 11,035, Level: 25 Points: 11,035, Level: 25 Points: 11,035, Level: 25
Activity: 10.5%
Activity: 10.5% Activity: 10.5% Activity: 10.5%
Thanks: Gave 342, Got 375
Posts: 4,924
Re: Learn C++ (eventually for Windows Mobile) ... which book for starters?

I assume you have Visual Studio 200x?

Here's a good developer resource and you'll find further links from there.

If you haven't got Visual Studio, have a look here, I believe the express version is free to download.

And some general advice, if you get stuck or have questions, google your API's or a general algorithm description and you'll find answers or even solutions that people have already provided. There is a lot of C++, C#, basically all language support out there to be found with good use of the search engine.

And finally, take a look at C#, you may find it easier to do what you want and quicker. (It'll be discussed under .net framework on the first link I sent you)
  Quote
Old 11-08-2008, 11:07 AM   #8
Prominent Member
 
Monty Burns's Avatar
Join Date: Jul 2005
Location: Cold, dirty, wet and expensive London.
Experience Points:
11,218, Level: 25
Points: 11,218, Level: 25 Points: 11,218, Level: 25 Points: 11,218, Level: 25
Activity: 18.6%
Activity: 18.6% Activity: 18.6% Activity: 18.6%
Thanks: Gave 394, Got 113
Posts: 3,603
Re: Learn C++ (eventually for Windows Mobile) ... which book for starters?

thanks for the links Toasty, will no doubt be very usefull

I've been told C# would be a lot quicker and easier to learn but sadly, according to the guys over on xda-developers forum, its limited on what can be done on WinMob and C++ is by far quicker and more versatile (on WinMob)
  Quote
Old 11-08-2008, 11:26 AM   #9
Prominent Member
 
Toasty's Avatar
Join Date: Jun 2004
Location: Staffs
Experience Points:
11,035, Level: 25
Points: 11,035, Level: 25 Points: 11,035, Level: 25 Points: 11,035, Level: 25
Activity: 10.5%
Activity: 10.5% Activity: 10.5% Activity: 10.5%
Thanks: Gave 342, Got 375
Posts: 4,924
Re: Learn C++ (eventually for Windows Mobile) ... which book for starters?

Quote:
Originally Posted by Monty Burns View Post
I've been told C# would be a lot quicker and easier to learn but sadly, according to the guys over on xda-developers forum, its limited on what can be done on WinMob and C++ is by far quicker and more versatile (on WinMob)
There is a lot of truth in that, I'd recommend C++ over anything running on a mobile device simply due to performance and compatibility issues, however, for a newbie, C# has a far easier learning curve, but now you've got some summertime reading, you'll be sorted

Once you've scanned the C++ book, I'd recommend getting your hands dirty ASAP and start getting used to the GUI, this, unfortunately, is where C# has major advantages as C++ has an almost do it from scratch feel. But there's always MFC
  Quote
Thanks from:
Monty Burns (11-08-2008)
Old 11-08-2008, 3:26 PM   #10
Veteran Member
 
GasDad's Avatar
Join Date: Mar 2006
Location: Bristol
Experience Points:
4,993, Level: 16
Points: 4,993, Level: 16 Points: 4,993, Level: 16 Points: 4,993, Level: 16
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Thanks: Gave 1,509, Got 722
Posts: 5,133
Re: Learn C++ (eventually for Windows Mobile) ... which book for starters?

And for the MFC support, (and .Net for that matter), head over http://www.codeproject.com/.

If you knew 68000 assembly, apart from being a BigEndian (shudder ) - you wouldn't actually find anything to surprise you about how C (and therefore c++) works.

Learning how to create a real Windows app is more problematic - getting to the Hello World stage can take a while.
  Quote
Post Reply

Powered by  
 Latest popular product prices
Hannibal: Enemy of Rome (Hanniba... 
3 prices from
 £3.89 Click to show/hide the offers

Hannibal: Enemy of Rome (Hanniba... 
3 prices from
 £3.89 Click to show/hide the offers

Diary of a Wimpy Kid: Dog Days (... 
5 prices from
 £4.19 Click to show/hide the offers

Diary of a Wimpy Kid: Dog Days (... 
5 prices from
 £4.19 Click to show/hide the offers

Call The Midwife: A True Story O... 
5 prices from
 £5.19 Click to show/hide the offers

Call The Midwife: A True Story O... 
5 prices from
 £5.19 Click to show/hide the offers

Oxford Bookworms Library New Edi... 
4 prices from
 £5.50 Click to show/hide the offers

Oxford Bookworms Library New Edi... 
4 prices from
 £5.50 Click to show/hide the offers

 Updated February 13th at 8:30pm. Prices include delivery.


Thread information and display options
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off