Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 131,739 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 2,206 people online right now. Registration is fast and FREE... Join Now!




Learning C++

2 Pages V  1 2 >  
Reply to this topicStart new topic

Learning C++, Best Way

jacksaywhat
post 25 Oct, 2005 - 03:28 PM
Post #1


New D.I.C Head

*
Joined: 25 Oct, 2005
Posts: 20


My Contributions


Here is a good question. What do you think is the best way for people to learn C++ and other languages, is it absolutely neccesary to take a class?
User is offlineProfile CardPM

Go to the top of the page

Amadeus
post 25 Oct, 2005 - 03:36 PM
Post #2


g++ -o drink whiskey.cpp

Group Icon
Joined: 12 Jul, 2002
Posts: 12,163



Thanked 32 times

Dream Kudos: 25
My Contributions


No it's not. Of course, having background in one programming language will make learning others easier, but it is not necessary at all. Programming languages are nothing more than that...languages. Most accomplish the same things, they just use a different syntax and some differing methodologies.

The key to programming is being able to think...to be able to analyze a problem and think of a solution. The language used to implement that solution is irrelevant (based on some key considerations).

I belive that if you are willing to work at it, you can easily teach yourself programming from a book, or just by doing...experimenting. Use the resources that are available...the ether abounds with forums such as these, and many other resources aside.

I can program competently in more than 30 programming languages, but I only became acquainted with 4 of them in an academic setting.

You should learn whichever way you feel most comfortable, be it class, books, or just trial and error.

My two cents.
User is online!Profile CardPM

Go to the top of the page

Piperlester
post 25 Oct, 2005 - 06:10 PM
Post #3


D.I.C Head

Group Icon
Joined: 18 Oct, 2005
Posts: 130



Dream Kudos: 25
My Contributions


I agree with Amadeus. (He's a really smart guy.)

I'm still mediocre with my programming, and very much so an amateur with my overall knowledge of C++ and other languages.

I've always (painstakingly) chosen a program to write. After the long, painful process of deciding what exactly I want to make, I write the base program. An example:

A program to store all my contacts. Yes, I could have done this far easier with Excel or other programs that are off-the-shelf, or available to download. But, after I got the base down (menu and writing to a file), I decided to learn reading from files, and working with the input. Now, I've designed a function that searches (very basically) for whatever the user inputs, and locates the appropriate contacts that match the criteria. It's slow, and it can be irritating, but you'll learn at your own pace, and in the end you might have a very, very cool little program.

I've found that adding, removing and streamlining my code has taught me much more, far quicker than formal training did.

I hope this is helpful.
User is offlineProfile CardPM

Go to the top of the page

born2c0de
post 26 Oct, 2005 - 03:32 AM
Post #4


printf("I'm a %XR",195936478);

Group Icon
Joined: 26 Nov, 2004
Posts: 3,895



Thanked 34 times

Dream Kudos: 2800

Expert In: 80x86 Assembly, C/C++, VB6, VB.NET, C#, J2SE, Win32 API, Reversing

My Contributions


As long as you have the desire to learn, no matter what you select, you'll be able to do it.
I always buy myself books since classes never end up covering up what they promise...and secondly I also doubt the Lecturers Knowledge of the Subject.
In My opinion...Books will get you going....ONLY if you have the force to keep you going...smile.gif
User is offlineProfile CardPM

Go to the top of the page

area
post 22 Nov, 2005 - 04:32 PM
Post #5


New D.I.C Head

*
Joined: 22 Nov, 2005
Posts: 22


My Contributions


i want to learn but i just don't understand this stuff blink.gif i got the real basics down but boy do i get confused when using for loops or this damn function thing i'm working on crazy.gif
User is offlineProfile CardPM

Go to the top of the page

Amadeus
post 22 Nov, 2005 - 04:59 PM
Post #6


g++ -o drink whiskey.cpp

Group Icon
Joined: 12 Jul, 2002
Posts: 12,163



Thanked 32 times

Dream Kudos: 25
My Contributions


Like any skill set, it's a matter of practice. The more you do, the more comfortable you will become. As with mathematics, sometimes it is best to separate into the smallest component parts, and learn each of those, then put it all together.
User is online!Profile CardPM

Go to the top of the page

Wizzy
post 22 Nov, 2005 - 05:23 PM
Post #7


D.I.C Regular

Group Icon
Joined: 20 Nov, 2005
Posts: 408



Thanked 1 times

Dream Kudos: 145
My Contributions


Sometimes people who have coded in Perl and then move to C find the environment harder and cannot cope; people who had experience with PHP find it is easier to code in C because the syntax is similar (as PHP was constructed from C). I do not advise someone with no knowledge of a programming language to attempt C, because it is far to complex for the average programmer. Try learning Web programming first and then a bit of bash maybe then C. But C++ is different from C,because its more user friendly, but an hardcore programmer would stick with C if he wasn't designing an interface.
User is offlineProfile CardPM

Go to the top of the page

Amadeus
post 22 Nov, 2005 - 05:47 PM
Post #8


g++ -o drink whiskey.cpp

Group Icon
Joined: 12 Jul, 2002
Posts: 12,163



Thanked 32 times

Dream Kudos: 25
My Contributions


I would advise the exact opposite. Programming is not about the language, it is about understanding how to think, how to formulate solutions. The language is merely a matter of syntax.

C is not so much more difficult as it is more developed...it has been the programming standard for many years, and as such, has developed a wide based set of tools with which to work. It takes more time to learn because there is more to learn.

C++ is a far more complex language than C, as there is a great deal of added functionality when one switches from a procedural language to an OO one.

Anyone who can program in one langauge can learn any of them...the underlying methodologies are the same (except between procedural and OOP). The syntax and toolset is what differs.
User is online!Profile CardPM

Go to the top of the page

Wizzy
post 22 Nov, 2005 - 06:10 PM
Post #9


D.I.C Regular

Group Icon
Joined: 20 Nov, 2005
Posts: 408



Thanked 1 times

Dream Kudos: 145
My Contributions


Definetly to people who are good at maths, because problems are solved with algorithms.
User is offlineProfile CardPM

Go to the top of the page

area
post 22 Nov, 2005 - 06:46 PM
Post #10


New D.I.C Head

*
Joined: 22 Nov, 2005
Posts: 22


My Contributions


well that answers my question why i suck at this! i suck at math! that just cleared it all up lol
User is offlineProfile CardPM

Go to the top of the page

Mrafcho001
post 22 Nov, 2005 - 07:26 PM
Post #11


D.I.C Addict

Group Icon
Joined: 1 Nov, 2005
Posts: 753



Thanked 5 times

Dream Kudos: 120
My Contributions


Don't worry about it if you are confused now, it's a phase everyone learning C++ without knowing any other language, or knowing anything about programming whatsoever (Ex. Me) goes through. But if you take it slowly it will clear up as you use it more and more.

When i first begun I really didnt understand much of what i was doing, and I hadn't learned any programming/scripting languages before that (not even HTML, i still dont know HTML). So i kept starting and stoping C++, and then basicly one day i woke up and I just understood the stuff and it made sence out of nowhere (it was seriously like that huh.gif ). And then i kept on going with C++, and now (about 1 year and 6 months later) I would say i know quite some C++, and doing Win32.


The most important thing about learning C++ is that you go at your own pace, and you have the desire to keep going.
User is offlineProfile CardPM

Go to the top of the page

microchip
post 23 Nov, 2005 - 07:18 AM
Post #12


New D.I.C Head

*
Joined: 14 Aug, 2005
Posts: 37



Thanked 3 times
My Contributions


I'd say the best way to learn, is by doing. This gives you experience to what you need to do, and how to solve the problems.

Start by learning the basic syntax of a language, and then think of something you can make which is within your reach. Then take out a piece of paper and write all the requirements and a flowchart (what your program does at a certain time) of it. Then start programming. If it doesn't work, search the net to see if anyone did the same before you and see how he solved the problems.

You'll need patience though... Lots and lots and lots and lots of patience...
User is offlineProfile CardPM

Go to the top of the page

2 Pages V  1 2 >
Reply to this topicStart new topic
Time is now: 11/20/08 11:01AM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month