Solved

Use C or C++ to start?

Posted on 1998-06-28
6
191 Views
Last Modified: 2010-04-01
I would like to start learning a programming language but really do no which one to start with?  I have copies of Pascal, Visual Basic, C, C++ and of course Q Basic.  If you don't think I should start with these ones please tell me what you think I need as a beginner programming language I wish to start with one that is not to difficult but also one that is current and used by industry standards today.
Please advise.
0
Comment
Question by:macrobie
6 Comments
 

Author Comment

by:macrobie
ID: 1166765
Edited text of question
0
 
LVL 10

Accepted Solution

by:
rbr earned 10 total points
ID: 1166766
Hard to answer. To learn the real basics you should start to learn C. If you want to program for commercial uses I think you should learn C++. Pascal is also a good starting programming language since you learn how to program in a modular way but you will not make some many errors at the beginning since Pascal is safer than C and C++. I think the best way is to start with C++ and you should keep an eye to other languages like C and Pascal.
0
 
LVL 22

Expert Comment

by:nietod
ID: 1166767
I would not recomend starting with C, if you have C++.  If you want to go the C/C++ route start with C++.  The basic elements of C++ are C, but with some additional features and protections that male it easier and safer to program.  Thus there really is no point in learning or working in C.  

However I would not recomend starting in C or C++.  These languages have too flexible a syntax and too many features for a beginner.  The number of features can be overwhelming and the syntax causes terible problems.  If you type something wrong there is a good chance it will still compile, but will do something you don't intend.  The other possibliity is that it won't compile and you will get an error message you don't understand.  C++'s syntax error messages tend to be impossible to understand because the syntax is so complex.

I would recomend Pascal as a starting language.  Learn the basic priciples of programming in pascal and get comfortable with the use of a compiler, writing programs, and debugging.  Then switch to C++.
0
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
LVL 3

Expert Comment

by:moonlight
ID: 1166768
yes, I agree with nietod, Pascal is made for learning programming, and is the best language for it. If you learn pascal you'll wasily learn the rest. You could start with C, but be prepared for some confusement, because it doesnt detect the errors in your code as well of other languages. For some experienced programmers this may be good, for others just a disadvantage.

C++ has lots of object oriented things, once again, I recommend you to begin with C and then move up to C++. the difference between C and C++ is really not much. For not obj.oriented programming C++ has some simpler commands, but you'll need C if you really plan to work with programming.

When wanting to learn object oriented, C++, is the easiest way up, if you know C. For oo also check out smalltalk and modula-3 (one of the most promising languages ever)
0
 
LVL 1

Expert Comment

by:Haho
ID: 1166769
I have some comments....:)
  If u want to learn object-oriented language, Java is better to start with than C++ because it is easier to understand ( without all the pointers thing) but if u want to learn structured languages, pascal is not too bad but commercially, it just doesn't reach the demand and acceptability of C or C++. It all depends what ur immediate target is.
To earn $$$, learn C , C++, or Java
To create a application in no time , use VB ( Basic)
To learn the basics and lay the foundation, Pascal is quite all right, if u don't want to learn C first.


0
 
LVL 1

Expert Comment

by:Musashi
ID: 1166770
Understand that language preference questions draws fanatics like light draws moths.  It becomes a holy war.  However...

Certainly learn C++ rather than C.  
Invest money in good books to save time.
Instead of learning Pascal to learn programming knowing that you'll probably never use it again, get a University level textbook on Programming Languages.  It will teach you what the differences are between languages, what the common constructs are, etc.  After all, once you learn one language, you will learn twenty.

0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
TTimer no longer functioning 7 90
AVI wait icons for CAnimateCtrl in Visual Studio 2008 MFC 1 138
getting a fire fox page (view page source ) in c++ 6 42
C++ question 3 65
In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question