I am new to programming. Over the years I have "tried" many langauges such
as basic, pascal(yea yea, I know, out of date), python and C. I was under
the impression that one must lean C before moving on to C++. Is that true,
or can I just begin with C++? 22 1572
Corey C. Carter wrote: I am new to programming. Over the years I have "tried" many langauges such as basic, pascal(yea yea, I know, out of date), python and C. I was under the impression that one must lean C before moving on to C++. Is that true, or can I just begin with C++?
No, the best thing is to begin with C++ in the first place. Check this: http://www23.brinkster.com/noicys/learningcpp.htm
--
Ioannis Vranos http://www23.brinkster.com/noicys
Corey C. Carter wrote: I am new to programming. Over the years I have "tried" many langauges
such as basic, pascal(yea yea, I know, out of date), python and C. I was under the impression that one must lean C before moving on to C++. Is that
true, or can I just begin with C++?
Read /Accelerated C++/. It shows how to treat the C++ Standard Library as a
high-level language. For example, always use std::string, and never deal
with the raw character pointers or arrays that it wraps.
--
Phlip http://industrialxp.org/community/bi...UserInterfaces
On Fri, 1 Apr 2005 13:10:13 -0800 in comp.lang.c++, "Corey C. Carter"
<TR***********@ COX.NET> wrote, the impression that one must lean C before moving on to C++. Is that true, or can I just begin with C++?
This issue is covered in Marshall Cline's C++ FAQ. See the topic
"[28.2] Should I learn C before I learn OO/C++?" It is always good to
check the FAQ before posting. You can get the FAQ at: http://www.parashift.com/c++-faq-lite/
See the welcome message posted in comp.lang.c++ under the subject
"Welcome to comp.lang.c++! Read this first." or available at http://www.slack.net/~shiva/welcome.txt
"Corey C. Carter" <TR***********@ COX.NET> wrote: I am new to programming. Over the years I have "tried" many langauges such as basic, pascal(yea yea, I know, out of date), python and C. I was under the impression that one must lean C before moving on to C++. Is that true, or can I just begin with C++?
Not true. You can start with C++.
--
Tim Slattery Sl********@bls. gov
Corey C. Carter wrote: I am new to programming. Over the years I have "tried" many langauges such as basic, pascal(yea yea, I know, out of date), python and C. I was under the impression that one must lean C before moving on to C++. Is that true, or can I just begin with C++?
C & c++ are different - one does not and for best results should not
learn C before trying C++
Syntactically they are similar, but then so is Java and C++.
C is a procedural language whereas C++ is an Object Oriented language.
Whilst C++ has a lot of backwards compatibility with C, its only to do
with the mechanics of the languages, rather than the design idioms.
If I was new to programming I certainly would NOT learn C before C++. I
would learn any other OO language before C++.
HTH
Andrew
Andrew McDonagh wrote: [...] C is a procedural language whereas C++ is an Object Oriented language.
That's not true. C++ is not an OOL. To quote the father of the language,
it's "a general purpose programming language with a bias towards systems
programming that
- is a better C,
- supports data abstraction,
- supports object-oriented programming, and
- supports generic programming." (TC++PL SE, chapter 2, sec 2.1)
[..] If I was new to programming I certainly would NOT learn C before C++. I would learn any other OO language before C++.
That needs a bit of clarification. Why would you learn another OOL before
C++? Why would you even consider learning any other language (except your
own, spoken one) before C++?
V
Victor Bazarov wrote: Andrew McDonagh wrote:
[...] C is a procedural language whereas C++ is an Object Oriented language.
That's not true. C++ is not an OOL. To quote the father of the language, it's "a general purpose programming language with a bias towards systems programming that - is a better C, - supports data abstraction, - supports object-oriented programming, and - supports generic programming." (TC++PL SE, chapter 2, sec 2.1)
Whilst that is true to some extent, if we are to gain the most benefits
of C++, IMHO its through its OO-ness.
C++'s backwards compatibility with C was only to aid adoption of the
language. It meant that C programmers could cross train to C++ easier.
The 'father of the language' Stroustrup (book URL below) goes into great
detail of why's and hows of the language is the way it is. http://www.research.att.com/~bs/3rd.html http://www.research.att.com/~bs/dne.html [..] If I was new to programming I certainly would NOT learn C before C++. I would learn any other OO language before C++.
That needs a bit of clarification. Why would you learn another OOL before C++? Why would you even consider learning any other language (except your own, spoken one) before C++?
V
What I mean, is that if I was too learn any kind of language before
learning C++, then I would learn an OOL rather than a procedural,
functional, etc kind of language.
That said, I personally don't think C++ is the best language to learn at
the same time as learning OO. There are other OOLs that are simpler than
C++, which aid the trainee learn OO skills which can be translated to
any OO language. This is why universities typically (but not
universally) Use Java or Smalltalk when teaching OO.)
Andrew McDonagh wrote: Victor Bazarov wrote: Andrew McDonagh wrote:
[...] C is a procedural language whereas C++ is an Object Oriented language.
That's not true. C++ is not an OOL. To quote the father of the language, it's "a general purpose programming language with a bias towards systems programming that - is a better C, - supports data abstraction, - supports object-oriented programming, and - supports generic programming." (TC++PL SE, chapter 2, sec 2.1)
Whilst that is true to some extent,
To "some extent"???
if we are to gain the most benefits of C++, IMHO its through its OO-ness.
That is unfortunate and quite single-sided view of C++.
C++'s backwards compatibility with C was only to aid adoption of the language. It meant that C programmers could cross train to C++ easier.
Not only "cross train". Consider millions of lines of code that could
be re-used virtually unchanged.
The 'father of the language' Stroustrup (book URL below) goes into great detail of why's and hows of the language is the way it is.
I guess the sound of your own voice in your head didn't let you see
that I quoted one of the books you refer to here. Oh well... http://www.research.att.com/~bs/3rd.html http://www.research.att.com/~bs/dne.html
[..] If I was new to programming I certainly would NOT learn C before C++. I would learn any other OO language before C++.
That needs a bit of clarification. Why would you learn another OOL before C++? Why would you even consider learning any other language (except your own, spoken one) before C++?
V
What I mean, is that if I was too learn any kind of language before learning C++, then I would learn an OOL rather than a procedural, functional, etc kind of language.
That said, I personally don't think C++ is the best language to learn at the same time as learning OO. There are other OOLs that are simpler than C++, which aid the trainee learn OO skills which can be translated to any OO language. This is why universities typically (but not universally) Use Java or Smalltalk when teaching OO.)
I can see now that you're fascinated (and pre-ocupied) with OO-ness of
C++. Too bad. C++ has much more to offer.
BTW, Java is definitely not the best representative of OO languages out
there. Teaching it as an example of an OO language is a mistake, IMO.
V This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Martin |
last post by:
When was inheritance intruduced into object oriented programming?
More generally, does anyone know or have any sources on when the different
features were introduced into object oriented programming?
|
by: G. |
last post by:
Hi all,
During my degree, BEng (Hons) Electronics and Communications Engineering, we
did C programming every year, but I never kept it up, as I had no interest
and didn't see the point. But now I really want to get back into it as I see
a point with GNU/Linux. I want to get my old skills back and write something
or help on some projects etc.
I need some good books. I used to have one called "A Book On C", but sold
it,
|
by: user |
last post by:
Hi all,
At the outset, I regret having to post this slightly OT post here.
However, I strongly feel that people in this group would be the best to
advise me on my predicament.
I am working as a QA in an MNC in India, since I graduated in September
2003. I am working in a QA role which requires me to do some Winrunner
automation, and modifying/creating a framework in Perl for Automated
Regression Testing of some command Line utilities...
|
by: evolnet.regular |
last post by:
I've been utilising C for lots of small and a few medium-sized personal
projects over the course of the past decade, and I've realised lately
just how little progress it's made since then. I've increasingly been
using scripting languages (especially Python and Bourne shell) which
offer the same speed and yet are far more simple and safe to use. I can
no longer understand why anyone would willingly use C to program
anything but the lowest...
|
by: Robert Seacord |
last post by:
The CERT/CC has just deployed a new web site dedicated to developing
secure coding standards for the C programming language, C++, and
eventually other programming language.
We have already developed significant content for the C programming
language that is available at:
https://www.securecoding.cert.org/
by clicking on the "CERT C Programming Language Secure Coding Standard"
| |
by: Jakle |
last post by:
I have been googling, but can seem to find out about C GUI libraries.
My main platform is Windows, but it would be nice to find a cross platform
library.
I've been programming with php, which has a C/C++ syntax structure, but want
to move on to compliled languages.
I was all ready to go with C++ and wxWindows, but I'm applying for an entry
level programming possition. They use their own propriatary language, with
|
by: Thierry Chappuis |
last post by:
Hi,
I'm interested in techniques used to program in an object-oriented way
using the C ANSI language. I'm studying the GObject library and Laurent
Deniau's OOPC framework published on his web site at
http://ldeniau.web.cern.ch/ldeniau/html/oopc/oopc.html. The approach is
very instructive. I know that I could do much of this stuff with e.g.
C++, but the intellectual challenge of implementing these concepts with
pure ANSI C is relevant to...
|
by: Enteng |
last post by:
Hi I'm thinking about learning C as my first programming language.
Would you recommend it?
Also how do you suggest that I learn it?What books/tutorials should I
read for someone like me?
Thanks in advance!
-entengk
|
by: deko |
last post by:
For building Windows desktop apps, the clear favorite is C#. But my clients
can't afford to buy Microsoft products. So I need to develop software for Linux
users and web applications.
In the open source world, what is the programmer's language of choice?
Judging by the number of members in each of these
http://www.google.com/Top/Computers/Programming/Languages/Open_Source/ user
groups, it looks like the top 3 open source languages...
|
by: CoreyWhite |
last post by:
I bought this book years ago, when I was just learning C++. Since
then I've gone through every math course offered at my college, taken
courses on coding C & thinking in terms how how to make the smallest
tightest algorithms to preform specific functions. I've also grown
and matured a lot, and am wiser and older. I'm reading through the C+
+ Programming Language, Third Edition now, and I can actually
understand it. I can understand it...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |