473,395 Members | 1,701 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

C++ for C programmer

I know C, and i want to learn c++. can someone recommend an on-line
source? - I also already know javascript. will that help?

Thanks.

~M

----
http://www.NovelTracker.com - top ten novels, ranked hourly.

Mar 13 '07 #1
5 1758
On Mar 13, 10:08 am, marywilliams1...@yahoo.com wrote:
I know C, and i want to learn c++. can someone recommend an on-line
source? - I also already know javascript. will that help?
See the FAQ:

http://www.parashift.com/c++-faq-lit...learn-cpp.html

I'd suggest you get _Accelerated C++_ by Koenig and Moo. It will teach
you the right way from the ground up (and help you unlearn some of the
C practices that may hinder your C++).

Cheers! --M

Mar 13 '07 #2
On Mar 13, 10:08 am, marywilliams1...@yahoo.com wrote:
I know C, and i want to learn c++. can someone recommend an on-line
source? - I also already know javascript. will that help?
Read this article first:

http://www.research.att.com/~bs/new_learning.pdf

Mar 13 '07 #3
On Mar 13, 8:44 am, "mlimber" <mlim...@gmail.comwrote:
I'd suggest you get _Accelerated C++_ by Koenig and Moo. It will teach
you the right way from the ground up (and help you unlearn some of the
C practices that may hinder your C++).
If there are any C practices that need to be "unlearned" they are
probably bad habits in C, also. My advice to C programmers (of which I
am one) is to focus on what you can do *easily* in C++ that is awkward
in C. If the interest is academic "I want to learn C++" then this is a
great approach.

If the interest is specific: "I need to refactor some code that uses
STL, with a custom allocator and it all looks like gibberish to me,"
then a more targeted approach is useful.

Either way, good C++ is a simplification of good C, and most C
programmers I know who have made the transition give this sigh of
satisfaction when they understand C++: "Ah, I always wanted something
that would persist type across a generic interface." or "Ah, I always
wanted something that would allow rigorous encapsulation AND automatic
allocation." etc. etc.
Mar 13 '07 #4
On Mar 13, 2:06 pm, "Bluejack" <bluuj...@gmail.comwrote:
On Mar 13, 8:44 am, "mlimber" <mlim...@gmail.comwrote:
I'd suggest you get _Accelerated C++_ by Koenig and Moo. It will teach
you the right way from the ground up (and help you unlearn some of the
C practices that may hinder your C++).

If there are any C practices that need to be "unlearned" they are
probably bad habits in C, also.
Not necessarily. Standard string processing in C is done with
pointers, while in C++ it is done with std::string. The latter is
generally much safer. In C, generic types are handled with void
pointers, while in C++ static and dynamic polymorphism are used. In
fact, most of the things that need to be unlearned are related to
pointers and arrays but are the preferred way of doing things in C.
See this FAQ:

http://www.parashift.com/c++-faq-lit....html#faq-34.1

Compare also:

http://www.parashift.com/c++-faq-lit....html#faq-28.2

We could add to the list declaring objects in as small a scope as
possible and only when they can be initialized (C makes you declare
your variables at the top of scope, perhaps before sensible
initialization is possible), using exceptions rather than return
codes, and relying on RAII for resource management. I'm sure there are
others.

Cheers! --M

Mar 13 '07 #5
On 13 Mar 2007 07:08:06 -0700, ma**************@yahoo.com wrote:
>I know C, and i want to learn c++. can someone recommend an on-line
source?
Bruce Eckel's 'Thinking in C++' is a good introduction to C++ for
programmers who already know C:
http://www.mindview.net/Books/TICPP/...ngInCPP2e.html
- I also already know javascript. will that help?
The more you know about programming the better.

Best wishes,
Roland Pibinger
Mar 13 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Daniel Chartier | last post by:
Hello. I work in the paper industry and we recently had someone (the original author) from within the company make a program for preventive maintenance. However, it had some bugs and we wanted...
11
by: | last post by:
What do I do? Any ideas? I went back to school after many years and finished my bachelors degree and studied programming at a local tech school. I have no great talent to return to (mainframe...
0
by: Christian McArdle | last post by:
REQUEST FOR DISCUSSION (RFD) unmoderated group comp.os.ms-windows.programmer.win64 This is a formal Request For Discussion (RFD) to create comp.os.ms-windows.programmer.win64 as an unmoderated...
0
by: Christian McArdle | last post by:
REQUEST FOR DISCUSSION (RFD) unmoderated group comp.os.ms-windows.programmer.win64 This is a formal Request For Discussion (RFD) to create comp.os.ms-windows.programmer.win64 as an unmoderated...
3
by: Christian McArdle | last post by:
REQUEST FOR DISCUSSION (RFD) unmoderated group comp.os.ms-windows.programmer.64bit This is a formal Request For Discussion (RFD) to create comp.os.ms-windows.programmer.64bit as an unmoderated...
29
by: jeffc | last post by:
How would you answer a question like this in an interview? I'm not interested in gathering the average of folks on this forum. I'm interested in a strategy for a) evaluating yourself objectively...
5
by: jrefactors | last post by:
when people say unix programmer, does it mean they write programs in unix environment,and those programs are run in unix platform? it is not necessary they are using unix function calls? I heard...
72
by: E. Robert Tisdale | last post by:
What makes a good C/C++ programmer? Would you be surprised if I told you that it has almost nothing to do with your knowledge of C or C++? There isn't much difference in productivity, for...
23
by: Steve Jorgensen | last post by:
Hi all, I'm working on a project through a consulting company, and I'm writing some database code for use in another programmer's project in Excel/VBA. The other programmer is working through...
13
by: BK | last post by:
Our .Net team has just inherited a junior programmer that we need to get up to speed as quickly as possible. Unfortunately, his skill set is largely Access with some VB6 and ASP classic...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.