473,587 Members | 2,320 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Which to learn first C or C++?

Hello,
I'm currently attending a university majoring in Computer Science.
I took C and C++ at a community college and got an A in both
classes. That was three years ago. I have not programmed or
anything like that in three years. I want to get back into the
programming scene so I have a question: Which should I relearn
first, C or C++? I have forgotten a lot about both languages so
please tell me which i should relearn first!

Thanks!
--
--------------------------------- --- -- -
Posted with NewsLeecher v3.7 Final
Web @ http://www.newsleecher.com/?usenet
------------------- ----- ---- -- -

Oct 24 '06 #1
40 2970
dy****@hotmail. com a écrit :
Hello,
I'm currently attending a university majoring in Computer Science.
I took C and C++ at a community college and got an A in both
classes. That was three years ago. I have not programmed or
anything like that in three years. I want to get back into the
programming scene so I have a question: Which should I relearn
first, C or C++? I have forgotten a lot about both languages so
please tell me which i should relearn first!

Thanks!
--
--------------------------------- --- -- -
Posted with NewsLeecher v3.7 Final
Web @ http://www.newsleecher.com/?usenet
------------------- ----- ---- -- -
C++ ;-)
It's better.
And high level.
Well power for science.
;-)
Oct 24 '06 #2
C

"Nathan Brown" <dy****@hotmail .comwrote in message
news:45******** **************@ unlimited.newsh osting.com...
Hello,
I'm currently attending a university majoring in Computer Science.
I took C and C++ at a community college and got an A in both
classes. That was three years ago. I have not programmed or
anything like that in three years. I want to get back into the
programming scene so I have a question: Which should I relearn
first, C or C++? I have forgotten a lot about both languages so
please tell me which i should relearn first!

Thanks!
--
--------------------------------- --- -- -
Posted with NewsLeecher v3.7 Final
Web @ http://www.newsleecher.com/?usenet
------------------- ----- ---- -- -

Oct 24 '06 #3
On Oct 24, 4:13 pm, Nathan Brown (dyd...@hotmail .com) wrote:
<snip>
Which should I relearn
first, C or C++? I have forgotten a lot about both languages so
please tell me which i should relearn first!
I would say it's valuable to know both of them. I would go with C
first, C++ second. It is really dependent on what you want to program
for. If you want to do OS-level coding, C is the traditional choice
(or so I'm told). Neither language is inherently "better" than the
other, and they have their own uses. One thing I've noticed, though,
is that many (most?) books assume you have prior knowledge of C and
programming.

On a personal note, when I first decided to learn C++, I learned C
first. Then, when I tried to learn C++, I didn't like it. I'm not
really sure why, but I just preferred the C way of doing things, and I
expected C++ to be more C-like (as if it were a superset of the
language, which it really isn't), so I halted on my C++ progress. It
was only recently that I decided to get over myself and learn C++ (and
I like it now). I don't know if other people have experienced this,
but I just wanted to put it out there.

Oct 25 '06 #4
"Nathan Brown" <dy****@hotmail .comwrote in message
news:45******** **************@ unlimited.newsh osting.com...
Hello,
I'm currently attending a university majoring in Computer Science.
I took C and C++ at a community college and got an A in both
classes. That was three years ago. I have not programmed or
anything like that in three years. I want to get back into the
programming scene so I have a question: Which should I relearn
first, C or C++? I have forgotten a lot about both languages so
please tell me which i should relearn first!

Thanks!
It depends on your goal. If your goal is to get going quickly with
programmer, than relearning C will definately put you back coding faster.
But, C++ is really a different language, and I've found that it may be
better to learn C++ first than C so you don't have to unlearn some things
(using void pointers, etc..).

Oct 25 '06 #5
dy****@hotmail. com <Nathan Brownwrote:
>I'm currently attending a university majoring in Computer Science.
I took C and C++ at a community college and got an A in both
classes. That was three years ago. I have not programmed or
anything like that in three years. I want to get back into the
programming scene so I have a question: Which should I relearn
first, C or C++? I have forgotten a lot about both languages so
please tell me which i should relearn first!
It can't possibly take you more than a couple weeks to re-learn
C to the point where you have the entire language memorized.
So I would do this, just to get it out of the way. Since C
is a subset of C++, and is the subset in which most/all procedural
code is written, you need to know C thoroughly to learn C++.

Steve
Oct 25 '06 #6

Steve Pope wrote:
dy****@hotmail. com <Nathan Brownwrote:
I'm currently attending a university majoring in Computer Science.
I took C and C++ at a community college and got an A in both
classes. That was three years ago. I have not programmed or
anything like that in three years. I want to get back into the
programming scene so I have a question: Which should I relearn
first, C or C++? I have forgotten a lot about both languages so
please tell me which i should relearn first!

It can't possibly take you more than a couple weeks to re-learn
C to the point where you have the entire language memorized.
So I would do this, just to get it out of the way. Since C
is a subset of C++, and is the subset in which most/all procedural
code is written, you need to know C thoroughly to learn C++.

Steve
I respectfully disagree with that point of view. C is not a subset of
C++.
I also happen to believe that learning C++ before C is healthier.

In the case of the OP, since its a re-learn and not a
do_it_from_scra tch operation, he could choose either path - or both. As
long as the C brain is working while coding in C and the C++ brain when
coding in C++.

Thats just a point of view, and not neccessarily the right one.
I'll say this: its very hard to undo C'isms from infecting C++ code.
Typically, the reverse is not true.

Oct 25 '06 #7
Steve Pope wrote:
It can't possibly take you more than a couple weeks to re-learn
C to the point where you have the entire language memorized.
There's a huge gap between 'memorized' and 'mastered'.
So I would do this, just to get it out of the way. Since C
is a subset of C++,
C is not a subset of C++. Lets see... reserved C++ keywords, void* not
being cast implicitly to other pointer types in C++, implicit
declarations of int returning functions in C, different semantics for
const objects, different rules for struct names and scope, character
litterals having type int in C and type char in C++, I could go on like
this...
you need to know C thoroughly to learn C++.
Not at all. C may actually be detrimental to your learning of C++ as it
may be necessary to unlearn things. For example, sane C++ developers
don't manipulate C-style char strings directly (except when interfacing
C code) and generally don't use the type unsafe mechanisms like void*
and varargs functions. You can usually judge how competent a C++
developper is just by looking at their use of C and C++ idioms.

Regards,
Bart.

Oct 25 '06 #8
I'm currently attending a university majoring in Computer Science.
I took C and C++ at a community college and got an A in both
classes. That was three years ago. I have not programmed or
anything like that in three years. I want to get back into the
programming scene so I have a question: Which should I relearn
first, C or C++? I have forgotten a lot about both languages so
please tell me which i should relearn first!
I started with C and then tried to program C++. My C++ was C with
classes. Horrible. If I were you, I'd start with C++ directly. Then
you don't learn bad C habbits that you have to get rid of later.
String handling for one thing.

Oct 25 '06 #9
Learn C first.

People give all kind of reasons why learning C++ first is better. But
as someone who has jsut got into C++ after finishing K&R a month ago,
let me put the case for C.

1. C++ books either teach you a basic "C with classes" or are
incomprehensibl e without an understanding of C. Knowing C makes them
easier.
2. The majority of online articles and tutorials assume knowledge of C.
3. C is small. After 8 hours of K&R you will be able to download the
Linux kernel, read its code and understand it. C++ takes a lot longer
- it is way way bigger.
4. C makes C++ possible. My first steps into C++ have been C programs
with STL string and vector thrown in. Almost against my will my code
is using classes just because it does make things easier.

Of course thsi is only my opinion - it may be that your previous C++
skills mean you will be uo and running in no time.

Patrick

Oct 25 '06 #10

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

Similar topics

17
3411
by: Rob | last post by:
i know javascript, vbscript, asp css and alot more and im only 14 i was wondering which is easier to learn php or cgi. any help?
38
4781
by: BORT | last post by:
Please forgive me if this is TOO newbie-ish. I am toying with the idea of teaching my ten year old a little about programming. I started my search with something like "best FREE programming language for kids." After MUCH clicking and high-level scanning, I am looking at Python and Forth. Both have advocates that say each is a great...
55
45965
by: Elijah | last post by:
I have read many of the topics on learning C++ or Java first. It seems like everyone says something different. I would like to know if I should learn C++ or Java. First a little about myself. I know PHP, BASIC, and of course HTML. I'll be 15 years old in September. I am interested in programming GUI applications. I am also interested in...
21
2831
by: TAM | last post by:
Hi, I read that ASP.NET uses VB.NET instead of VBScript. I also read that ASP.NET is a subset of VB.NET. So if I learn VB.NET first then do I have the knowledge for programming ASP.NET applications or do I need to learn both VB.NET and ASP.NET. Thank you. TAM
17
3956
by: clintonG | last post by:
I'm using an .aspx tool I found at but as nice as the interface is I think I need to consider using others. Some can generate C# I understand. Your preferences please... <%= Clinton Gallagher http://forta.com/books/0672325667/
7
3288
by: felecha | last post by:
I have been developing an app in VB.Net, using a simple form and a button to kick off a class that starts asynchronously receiving from a MessageQueue. It's been working fine, but now I'm moving toward converting it to a Windows Service, so I switched from instantiating the clsMsgReceiver class at the Button_Click to a simple Main() that...
9
2621
by: arnuld | last post by:
hai folks, well, it's me again and again, i am asking questions. anyway, with your help i have finalised that i will start learning c++ (as you told me that i do not need to know any OO language before c++). that was 15 days ago IIRC. now that with my skill set i went on to search for a good book. my knowledge is limited to the following: ...
1
256
by: dydx13 | last post by:
Hello, i have a quick question: Should I learn C first or should I learn C++ first? Does it matter? Thanks! -- --------------------------------- --- -- - Posted with NewsLeecher v3.7 Final
12
2301
by: Srdja123 | last post by:
Like the topic says, I want to learn a language, but which should I learn? Which language will be mostly used in the future? C++ or C#?
0
7918
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, 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...
0
7843
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8206
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, 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. ...
0
8220
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 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...
0
6621
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5392
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...
0
3840
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2353
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1185
bsmnconsultancy
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...

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.