Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> How To Learn C/c++
kuberan_swe
post Oct 23 2007, 04:28 PM
Post #1


Member [Level 2]
*****

Group: Members
Posts: 87
Joined: 10-August 07
Member No.: 47,922
myCENT:48.95



Every computer newbie (almost) try to learn C/C++ as their first programming language...So it's very important to learn these languages very well,as it lays a foundation for you to develop programming skills and aids you in studying still more new programming languages in the future...If you have a sound knowledge of C/C++ you can study anyother programming language....C and C++ should be studied from the perspective of programming.You should not simply study about the language...You should spend time in implementing many concepts....

Concepts are very important while studying a Programming language....Suppose you study about constructors and destructors in C++,first you should know why it is used...then what disadvantage it overcomes....Why did they think of a new concept like this and then how it is implemented in C++....After that you should also study if there is any disadvantage of that....

WhenEver you study about a concept you relate that with a real world example...For example References are available in C++...It can be summed up in word as Pseudo-name....You can imagine as a nickname to a person....You call your friend as Vignesh....Let his nickname be Fatso....Whenever you refer Fatso it refers to vignesh.....Whenever Fatso gets hurt vignesh also gets hurt...References are used instead of pointers......So berfore moving to references you should have known the disadvantage of pointers....

So building strong cocepts and fundas are very important....Ask Why for every concept...Like why initialisation when there is assignment....When you start to think like this your thought process gets streamlined....The next step is that Programming language is to program...It's not enough that you should study these concepts theoratically...You should also spend time on implementing these concepts....

The best environment to study C/c++ is Linux....All Linux Distro's comes with GCC(GNU Compiler Collection)....It's the best compiler....There are many books on How to use GCC...Just Google GCC e-books....Have great fun in learning C/C++
Go to the top of the page
 
+Quote Post
t3jem
post Oct 24 2007, 01:41 AM
Post #2


Privileged Member
*********

Group: [HOSTED]
Posts: 519
Joined: 9-February 07
Member No.: 38,519
myCENT:ZERO



Hm, well I self-taught myself C++ in 7th grade because I saw my friend (who works for IBM) working on a project that interested me; however, I never really "taught" myself, but more just learned how to use it. I know now how bad my programming is even if it does do what I want it to do (most of the time); however, I hope that I will learn better concepts when I get into college. This is definitely great advise for anyone looking to learn C++ though.
Go to the top of the page
 
+Quote Post
pointybirds
post Oct 26 2007, 06:13 AM
Post #3


Newbie [Level 1]
*

Group: Members
Posts: 12
Joined: 24-October 07
Member No.: 51,949



I learnt C programming through a mixture of theory and practice, but it wasn't until I started tutoring in the language that my grounding in it became decently solid. There's nothing quite like needing to answer all manner of leftfield questions to really drum some of the fundaments of a language into you. Obviously this isn't possible or even desirable for everyone, but I believe the advantage came from the inquiring minds of those learning the language: If you can keep your level of curiosity up while you study a language, and follow up on unanswered questions you might have, you'll get a far better understanding of the language.

Also, very importantly: Read other people's code. Not only for their successes and different ways of solving problems, but for the novel ways that they find to make mistakes. Nobody could write a decent novel without having read a bunch of them first; there's a difference between getting across the plot of a story and telling it well.

Finally, I don't think I'd recommend C as a first language unless you have a compelling reason to start using it. The basic theories of programming are more prominent and educational in languages such as Pascal/Modula-2, if you have the time and inclination to study them. Have a read through the C FAQ to get an idea of how esoteric some of the fundamentals can get!
Go to the top of the page
 
+Quote Post
AskAndrewD
post Nov 6 2007, 09:40 PM
Post #4


Newbie [Level 3]
***

Group: Members
Posts: 45
Joined: 5-November 07
Member No.: 52,509



You disappointed me! 8(

I thought you were going to provide a link to a really nice C++ editor. Well, I found a few, but we have a newer version of C++ and for some reason the codes don't match up exactly (Like, for example, when I type in #include <something.h> the newer version does something like #include "something")
Go to the top of the page
 
+Quote Post
teknoTom
post Nov 6 2007, 10:37 PM
Post #5


Member [Level 2]
*****

Group: Members
Posts: 85
Joined: 1-October 07
Member No.: 50,972



I am trying to learn, well, unsuccessfully. I don't know where to start! I don't know what tutorials to use! My IT classes in school are very simple, and don't even touch on programming! It makes me mad!

[/rant]
Go to the top of the page
 
+Quote Post
fffanatics
post Nov 7 2007, 01:10 AM
Post #6


Privileged Member
*********

Group: [HOSTED]
Posts: 936
Joined: 14-April 05
From: West Chester, PA
Member No.: 5,636



To learn C/C++ your best bet is to either get a book and read it while doing the exercises and so forth, or use an online tutorial. Once you have basic knowledge of the data structures, how to write code, etc. you can try to right small programs that are useful (preferably command-line programs). Doing this you will encounter many errors and having to figure out what is wrong with your code and how to improve it. This way, you truely learn how to code and not to just type in examples from a book. From here you would go on to writing more practical applications and so forth. However, to get to that point will probably take you a good month or more so i wont go into more detail.

As for how to write code, you can use any editor or notepad. Personally I use visual studio (you can get visual studio express for free). however, you can also use eclipse's cdt for C/C++ development.
Go to the top of the page
 
+Quote Post
djole_home
post Nov 9 2007, 03:58 PM
Post #7


Newbie
*

Group: Members
Posts: 2
Joined: 9-November 07
Member No.: 52,696



I can recommend one book. "The C Programing Language" from Brian W. Kernighan and Denis M. Ritchie (Denis Ritchie was one of creators of C language) make learning very easy. Read chapters, follow primers and try to understand them and, most important, do exercises. This while not make prof programmer from you bat it is begin of journey. After that goes hard part, learn standard libraries and libraries in field you work in (example for grafic you while learn openGL). This learn from documentation of particular library and commented code.

PS: My writen english is bad so I apologize to reader.
Go to the top of the page
 
+Quote Post
suberatu
post Nov 15 2007, 04:52 AM
Post #8


Advanced Member
*******

Group: Members
Posts: 131
Joined: 23-September 07
Member No.: 50,511



I actually have a copy of "The C++ Programming Language" by Bjarne Stroustrup (creator of C++). Just to clarify, it is a different book from the one djole_home mentioned. I tried to learn from this book, but it was VERY difficult (at least for me) because of two things:
1) The author expects you to either have some programming foundation or be able to pick up on the basics rather quickly.
2) It is very fast paced. Every time a new topic is introduced, the author goes through ALL the ins and outs of the topic.

Some people like this style of teaching/learning because of its intensiveness. If it works for you, that is fine, but if you are just beginning programming, I recommend you find something else.

My high school offers a C++ course and (while taking it as an independent study) I used the book they provided to learn C++. I can't recall offhand the name of the book, but it was one meant for students just entering the field of programming. It was easy to read, flowed smoothly (for the most part) and gave nice examples with concise but sufficient explanations. If you are just starting out and want to learn C++, I recommend a book that is structured in such a fashion over the more 'hardcore' books out there. That being said, it's really your decision what to use (what kind of book, or even abandonning books altogether and using the internet). You should definitely check out a bunch of different books/resources, see which one you like best and then use that one (or more than one if you prefer).
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. where did you learn html from?(97)
  2. Whats You Current Trick You Want To Learn?(10)
  3. How Can I Learn Assembly(15)
  4. Signature Tutorial(31)
  5. What Was Your First Computer, And How Did You Learn To Use It?(44)
  6. Wanting To Touch Up/learn My Html Again(27)
  7. Learn To Fly(15)
  8. Where/how Did You Learn Css?(39)
  9. Learn Html Quick And Easy(15)
  10. Disabling Safe Boot On Windows Xp(3)
  11. History Of Eu Countries - What Shall Kids Learn In School?(9)
  12. Why Must We Learn Object Oriented Programming(8)
  13. Asian Food Recipes(4)
  14. Where Is There A Good Site To Learn Web Html?(20)
  15. Tutorial On How To Compile Your Own Mangos World Of Warcraft Private Server.(4)
  1. Cool Site To Learn Languages(6)
  2. Learn Html, Css, C And C++ Online For Free(13)
  3. Team Fortress 2 Professional Spy Guide(3)
  4. Learn Java Programming Language Online Step By Step(1)
  5. A Prelude To Programming(10)
  6. Perl Regular Expresions Regex(2)