Lost Password?

Go Back   CodeCall Programming Forum > Software Development > Tutorials > C Tutorials

Unregistered, Check out the Coder Battles in the Announcement and Game forums.

C Tutorials All C Tutorials and Code

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-04-2007, 12:26 PM
WingedPanther's Avatar   
WingedPanther WingedPanther is offline
Super Moderator
 
Join Date: Jul 2006
Age: 35
Posts: 2,485
Last Blog:
wxWidgets is NOT code ...
Credits: 830
Rep Power: 28
WingedPanther is a jewel in the roughWingedPanther is a jewel in the roughWingedPanther is a jewel in the roughWingedPanther is a jewel in the rough
Default C++: How should you start learning it?

I'm going to start working on some C++ tutorials, but I want to start with this basic question, first.

1) You will need some books. How advanced you can start depends a lot on your background, so we'll start with that. If you've never used an object-oriented programming language before, you will want to begin with a gentler introduction. The Teach Yourself series or For Dummies books aren't bad for this, but they will not make you an expert, either. One of the best books to arrive at is The C++ Programming Language, by Bjarne Stroustrup. It is not for the faint of heart, but it will help you a LOT.

2) If you know C or Java already, be prepared for some surprises and bumps along the way. Java handles a number of things quite differently from C++, even though they look similar. Java also does a number of things for you (garbage collection) that C++ simply does not do. Similarly, if you know C, you will be tempted to do things in C++ the same way you did them in C because you can. Don't do it! C++ has its own way of doing things. If you have a C++ book that wants to teach you C first, get rid of it! C++ is not just C with cl***es. C++ is a different language with different rules and restrictions, as well as different preferred ways of doing things.

3) Be aware that a lot of people/companies have provided a lot of extensions to C++. For example, C++ does not provide any graphical utilities. Microsoft's Visual C++ offers additional stuff for that. Borland's C++ has different ways to do the same. wxWidgets, GTK+, and other group efforts provide more. I know that making programs "pretty" with a nice GUI is fun, but worry about how the language works, first. It is easy to get lost in exploring how various GUI toolkits work and forget how the basics work. I recommend using Dev-C++ as an initial development environment because it's free, and doesn't distract you with lots of extras.

4) Finally, write a lot of code with patience. C++ is a language that can easily take years to become good at, and even the creator is learning new ways of using it.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum
Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 01-06-2007, 11:39 PM
John's Avatar   
John John is offline
Co-Administrator
 
Join Date: Jul 2006
Age: 20
Posts: 3,237
Last Blog:
Passwords
Credits: 877
Rep Power: 20
John has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud of
Send a message via AIM to John Send a message via MSN to John
Default

I really want to learn C++ so I bought Ivor Horton's "Beginning Visual C++ 2005" but I really don't know if I can read another 10 chapters that explain what a loop and a variable are, but then again if I skip it, I will probabley miss out on something valuable.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-28-2007, 12:19 PM
Matt's Avatar   
Matt Matt is offline
Learning Programmer
 
Join Date: Jan 2007
Location: Northwestern US
Posts: 47
Credits: 0
Rep Power: 7
Matt is on a distinguished road
Default

Once one is pretty confident in knowing how the language works, what tools would you suggest for GUI design? Which are the most flexible, and which are the easiest to use? Thanks.
__________________
http://www.mattnichols.net
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-29-2007, 11:23 AM
WingedPanther's Avatar   
WingedPanther WingedPanther is offline
Super Moderator
 
Join Date: Jul 2006
Age: 35
Posts: 2,485
Last Blog:
wxWidgets is NOT code ...
Credits: 830
Rep Power: 28
WingedPanther is a jewel in the roughWingedPanther is a jewel in the roughWingedPanther is a jewel in the roughWingedPanther is a jewel in the rough
Default

wxWidgets has a book out now that talks about using it, and is cross platform. For myself, I think the key is to wait until you understand the other aspects and pick a choice that is well-do***ented. wxWidgets and GTK+ will probably give you the most support via forums as you learn.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum
Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-29-2007, 05:35 PM
Matt's Avatar   
Matt Matt is offline
Learning Programmer
 
Join Date: Jan 2007
Location: Northwestern US
Posts: 47
Credits: 0
Rep Power: 7
Matt is on a distinguished road
Default

Sounds good, thanks for the advice.
__________________
http://www.mattnichols.net
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 12-16-2007, 11:30 PM
catherine sea catherine sea is offline
Newbie
 
Join Date: Dec 2007
Posts: 9
Credits: 0
Rep Power: 0
catherine sea is on a distinguished road
Default

why should we get rid of books which start with C?
C is compatible with C++ and it's easier for starters.Much of them are overlapped.In my opinion, it's really helpful to learn some kownledge about C before rush into C++.
__________________
www.dynamsoft.com – the leading developer of
version control and issue tracking software provider
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 12-17-2007, 10:45 AM
WingedPanther's Avatar   
WingedPanther WingedPanther is offline
Super Moderator
 
Join Date: Jul 2006
Age: 35
Posts: 2,485
Last Blog:
wxWidgets is NOT code ...
Credits: 830
Rep Power: 28
WingedPanther is a jewel in the roughWingedPanther is a jewel in the roughWingedPanther is a jewel in the roughWingedPanther is a jewel in the rough
Default

Because C is NOT a useful subset of C++. For example, C requires you to learn the syntax for scanf and printf, which are both rather tricky to remember/learn. By comparison, cin and cout are much easier to work with.

Also, when using C you frequently have need of macros, which are almost never needed in C++. To me, it makes no sense to learn something in C, then throw it out to learn the C++ way of doing things.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum
Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-03-2008, 06:05 PM
superjacent superjacent is offline
Newbie
 
Join Date: Dec 2007
Posts: 11
Credits: 0
Rep Power: 0
superjacent is on a distinguished road
Send a message via MSN to superjacent Send a message via Yahoo to superjacent
Default

Good topic and I agree with original poster. I'm self-studying primarily from C++ Primer Plus, 5th Edition, currently at chapter 8, functions re - templates & serialization. A little confusing at the moment though I'm hoping it will clear itself up as I progress.

Ultimately, I want to GUI program using C++, for personal purposes, and I'm realising that a good understanding in the basics (or the non GUI stuff) is paramount.

Just my 2 cents worth.
__________________
Steve
Prime 357
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 03-25-2008, 12:24 PM
ToxeCryz ToxeCryz is offline
Newbie
 
Join Date: Oct 2007
Posts: 2
Credits: 0
Rep Power: 0
ToxeCryz is on a distinguished road
Default Re: C++: How should you start learning it?

If you dont like reading books you can also buy 3DBuzz "C++/OpenGL" Video tutorials.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
test



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows XP Tricks & Tips!!!!..new ones. pranky Tutorials 9 08-23-2008 03:22 PM
Netmeeting Could not Start Solution Jordan Computer Software/OS 3 08-18-2007 03:39 PM
IRC: Where do I start? I like pie General Programming 1 04-27-2007 11:34 AM
Calculate Quarterly dates from a Start date reachpradeep Database & Database Programming 0 03-05-2007 07:19 AM
Is it worth learning C now? Kaabi C and C++ 13 07-15-2006 10:13 AM


All times are GMT -5. The time now is 02:49 AM.

Contest Stats

Xav ........ 1322.18
MeTh0Dz|Reb0rn ........ 1053.7
morefood2001 ........ 879.43
John ........ 877.37
marwex89 ........ 869.98
WingedPanther ........ 830.24
Brandon W ........ 735.07
chili5 ........ 309.39
Steve.L ........ 239.84
dcs ........ 216.02

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 82%

Ads