How To Learn C/c++

free web hosting
Open Discussion > CONTRIBUTE > Computers > Programming Languages > C/C++ Programming

How To Learn C/c++

kuberan_swe
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++

 

 

 


Reply

t3jem
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.

Reply

pointybirds
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!

 

 

 


Reply

AskAndrewD
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")

Reply

teknoTom
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]

Reply

fffanatics
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.

Reply

djole_home
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.

Reply

suberatu
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).

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Recent Queries:-
  1. wha is destructors and its importance in c ? - 242.16 hr back. (1)
  2. learn while you work. c - 288.65 hr back. (1)
Similar Topics

Keywords : learn, c, c,

  1. Taking The Linux Plunge
    Want to help me learn Linux? (7)
  2. Learn To Appreciate Others!
    (5)
    Hey all: My wife works really hard at work with little reward sometimes. She organised the work
    training day, booked flights, arranged catering, got a electric whiteboard delivered and made sure
    everything was arranged. Yet people complained...too much food....the cake can cause diabetes
    (health educators pfft) the guys picked up the board at the correct times so the meeting
    couldn't go overtime...blah blah blah. Just remember if someone makes an effort thank them
    don't complain. Make them know you appreciate what they do. Say it today and see the smile on ....
  3. Free 10 Day Affiliate Masters E-course
    Learn how to make money online as an affiliate. (0)
    Hey all: Here is a 10 day e-Course about affiliate marketing. It is a broad subject and one of the
    most common ways that people 'attempt' to make money on the internet. Affiliate Masters
    e-Course It is important to have good information about the reality of this field. Topics covered
    include developing a site concept, brainstorming hundreds of profitable, related keywords, building
    that themed site full of money-earning keyword-focused content pages, to attracting targeted,
    motivated traffic that clicks on your recommendations, and buys from the merchants ....
  4. Should Children Learn "both" Theories?
    (28)
    Until recently, I was on the fence about whether creationism should be taught in schools. Then I
    began to read up on it. Basically, Christians are asking that both creationism and evolution be
    taught side by side, so that the students can choose for themselves. It sounds reasonable,
    doesn't it? Maybe this comic will help you understand why I've come to decide that it's
    in no way reasonable. The point is that creationism is not a scientific theory. It's a
    belief, and it happens to be a belief that I hold very strongly. But even I have come to a....
  5. Perl Regular Expresions Regex
    Learn how to use regular expressions (2)
    I've searched the Tutorials section, but haven't found a RegEx tutorial, so I thought
    I'd add one, since it's very usefull to know regular expressions if you're a
    programmer... If I overlooked a tutorial explaining RegEx, my bad, just erase this tutorial... Ok,
    first off, regular expressions are a great functionality of Perl, but the can also be found in other
    languages and environments, such as linux shells, or PHP... I'm guessing most people would be
    interesten in useing regular expressions in PHP... Let's go on with a complex matching reg....
  6. A Prelude To Programming
    What to learn? How to learn? (10)
    I'm quite interested in learning programming. I want to know how us eager souls can go about
    doing that. I'm interested in both web and desktop programming. I already know XHTML & CSS. Any
    recommended books?....
  7. Learn Java Programming Language Online Step By Step
    (1)
    I had found this site >> http://learnjava.awardspace.com This website is for people who want
    to learn Java Programming Language step by step. This website also includes JAVA lessons from the
    beginning to advanced level. So this site appropriates for the beginner of Java programmer language
    or non-basic Java Programming Language. The lessons are easy to follow and understand starting
    from how to get your PC JAVA ready, the fundamental programming concept and creating the real
    application. Moreover, the working examples are also included. Please enjoy the les....
  8. Team Fortress 2 Professional Spy Guide
    I wrote this guide for people who want to learn how to play Spy (3)
    I quoted so I don't get free points QUOTE(AmirBorna) Best Spy Tips : Image not
    created by me. 1) You're a support class, so do some supporting: You're the only class
    that can get into the enemy ranks/base and do some damage in secret, so use that to your
    advantage, and make a mental list of everything the enemy has. Then use your abilities to take out
    each one, in order of importance. If there's a Sniper demolishing every teammate that comes
    near their team, find a good time to backstab him. If a heavy weapons is just flattening everyone....
  9. Learn Html, Css, C And C++ Online For Free
    Wanna learn to write programs and/or make websites? You can do it fre (12)
    Have you ever used an application or played a game and thought, "If you could only..." or "If I knew
    how I would add..." but didn't know where to start? I did and decided to do a lil research. I
    came across a site with great tutorials. There are many ranging from beginner all the way to
    advanced. After each tutorial there is a test to practice what you just learned. I dunno if I am
    allowed to post the url to these sites here due to spam filters but I will say that if you search
    for "c programming" in any major search engine it should be the first link (after the....
  10. Give Me A Little Space, Please! [denied]
    I like a free host for learn (3)
    I'm testing joomla CMS, so i neea a free php host for testing. I'm looking that. I found
    your site on google, and your speed is so good, so i register one nick at here, i wish you send to
    me a litte space on your host. Thank you! Best Regard!....
  11. Cool Site To Learn Languages
    Learn to speak in Native accent (6)
    http://www.livemocha.com/ Discovered this site months before. And also I took some classes. I
    should say this is really cool one. Try it. Learn new languages in a social way with LiveMocha.
    Livemocha is the first-of-its-kind online language-learning community. With fun and interactive
    lessons that move at the right pace for you. You can access their team of passionate language tutors
    and start track your progress to reach your goals. Learn, practice, and share. Learn these
    languages: English, French, Hindi, German, Spanish and Mandarin Chinese, among other....
  12. You Need To Be Bold To Be Unselfish
    Lets Learn from Abraham of the Bible (2)
    Abraham and Lot who started together separated from each other on their way due to a quarrel that
    erupted between their herdsmen. Even though Abraham was elder to Lot and had every right to choose
    first, he was so gracious to offer the choice to Lot. When Lot selected the best of the land,
    Abraham gladly consented. Doesn’t this show the magnanimity of Abraham? In another incident, we read
    that four great kings came against Sodom, the place where Lot lived, seized all the goods and the
    people living in it, including Lot and his possessions. When Abraham heard this he imm....
  13. Tutorial On How To Compile Your Own Mangos World Of Warcraft Private Server.
    A great way to learn about how big MMORPGs work and are built. (3)
    ==================== | Disclaimer Please read | ==================== This is an
    educational project ONLY! It is NOT MENT TO BE RAN AS A PUBLIC SERVER! If you do run a
    public server it MAY be against Blizzard's (World of Warcraft's parent company) EULA and you
    will void any agreements including the right to play on their servers. They will DELETE YOUR ACCOUNT
    and possibly ban you from their servers all together. I am writing this to help you learn what goes
    into making a big time MMORPG and possibly get people into learning about video game prod....
  14. Where Is There A Good Site To Learn Web Html?
    (20)
    im a noob when it comes to web html to design web sites, can some one tell me where to find a good
    website that has good tutorials on how to use web html?....
  15. Photoshop -- Double Stroke
    Learn to create a neat-o text effect (2)
    Lets do this! 1. Create a new photoshop document with the dimensions 88x31. If your lost
    already... quit. 2.Alright make some random background and then put some random black-colored
    (#000000) text on it. Kind of like the picture below. 3. Select the text layer you have just
    created and click on the little f symbol near the bottom of the layer window. A sub menu should pop
    up. Click on stroke. 4. Some editing window should appear. Change all the values to what you
    see in the following image, make sure the stroke color is white (#FFFFFF). After this tu....
  16. Asian Food Recipes
    Recipe to learn how to cook Asian food (4)
    Hi All, I would like to share my knowledge of cooking Thai and Burmese food. In the same way, I am
    interested to learn how to cook other Asian Food (Chinese Food, Japanese Food, Korean Food, Indian
    Food, Malaysian Food, Indonesian Food, etc) Therefore, if you have any recipe, I would like to
    request you to post in here and share others. /wink.gif" style="vertical-align:middle" emoid=";)"
    border="0" alt="wink.gif" /> I would like to start with my favorite one: Thai Tom Yum Soup. It is
    easy to cook and very tasty. MAIN INGREDIENTS: Lemon Grass, Galangal, Lime Leaves, ....
  17. History Of Eu Countries - What Shall Kids Learn In School?
    (9)
    As you probably know, European Union wants to introduce universal history handook for all students
    in countries that belong to EU. In may 2007 there was a big debate about it on some meeting and
    Polish minister of education as the only one, criticized the idea. He is some kind of nationalist
    but this is not the point. The point is - do you think that it is possible to create the same
    handbook for all European countries keeping in mind their completely different histories? Do you
    think that is is possible to make a list of most importan events in European history that cou....
  18. Disabling Safe Boot On Windows Xp
    Learn how to do it (3)
    I know that there has been many at times, when for some reason or the other, people would want to
    disable the ability of Windows XP to boot into safe mode. Even though that this is not a very thing
    advisable thing to do, but still, people, due to some reasons best known to them would always want
    to do this. The other day, a friend of mine who works in (manages is the right word) a cyber cafe
    was heads over toes, trying to figure out to to disable the safe mode boot in Windows XP. His
    reason..... customers are hacking into their computers and browsing free of charge by b....
  19. Learn Html Quick And Easy
    HTML, javascript, and CSS (14)
    well eversince i got interested in web desighn i've looked for tutorials but they where not that
    helpfull and uderstanderble but there where two web sites that i liked 1. my favorite one was
    htmldog it had tutorials on HTML, CSS, and a little bit of javascript. they where very
    comprehenseve . and i read through all of them, understoode them, in about less than a week. also
    has full references for HTML, and CSS tags. 2.since html dog did not provide realy good javascript
    tutorial i looked to w3school for that while it wasnt very understandable too me, maybe it....
  20. Where/how Did You Learn Css?
    (36)
    So...I'm bored at work, and I figure I should do something to occupy my time. And I think now
    would be the best time for me to learn CSS...I've got plenty of time and I don't have any
    computer/video games or tv to distract me. So I was just wondering, for any CSS designers out
    there, where/how did you learn it? Links to online material are appreciated. EDIT: Oh wow,
    Tim's right...one more post to 3000. I should make it a sig topic or something... EDIT 2: AW
    MAN, I left and forgot...my 3000th post ended up in Mike's topic .....
  21. Learn Russian
    Basic Stuff You Need To Know (7)
    Learning Russia Lesson 1 - Basic Words ~~~~~~ Hello - privyet (informal hello) Hello - zdrastye
    (formal hello) Bye - poka How are you - kak dila Good/Wll - horosho Ok/Normal - normalno Poor/Bad -
    Ploka ---More Words Yet To Come--- ---Study Makes Perfect--- I am going to make a quiz over this
    so you all better be ready =). I hope I inspire you to learn russian. Its a great language plus I am
    russian as a russian respects mother russia we respect all so I am sharing top language (not really
    top) to you. L = Lesson Quiz - Over L1 http://www.quizyourfriends.com/quizp....
  22. Learn To Fly
    Flight Simulator X acts as a potential teaching tool for wannabe pilot (13)
    QUOTE The biggest difference between a video game and a simulator? Realism. Video games are
    meant to entertain, after all. Simulators, on the other hand, are usually educational tools. A few
    games, however, manage to do a bit of both. Flight Simulator X is a good example: it’s not
    only fun, you just might learn something. The vast scope of this Microsoft game will overwhelm at
    first, especially if you’ve never played a flight simulator before. This latest version in
    the venerable 25-year-old franchise packs a dizzying array of features: there are mor....
  23. Wanting To Touch Up/learn My Html Again
    (27)
    Ok, well recently i realized that i am not as skilled in HTML (such as building website layouts) as
    i want to be, with tables etc... and so i was thinking about going through many many many many many
    many sites and just touching up on my HTML and see if i can code my own website template before
    starting to learn PHP because that is what i want to do. so, i am asking all of you experianced
    people on trap17 what websites did you use to learn your HTML skills, yees i know i could go to
    google and type in learn html or somthing along the lines of that, but i want to know wh....
  24. What Was Your First Computer, And How Did You Learn To Use It?
    After hours of searching which category this fits in, I couldn't f (44)
    Yeah... Me? I don't remember but I am interested to know about you. /tongue.gif"
    style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" /> I know it may seem a
    stupid question but it interests me. So... What was your first comp and how did you learn to use
    it?....
  25. Signature Tutorial
    Learn how to make a complete signature (25)
    Signature Tutorial Hello. A friend of mine made this tutorial for his site, and he
    allowed me to post it here as well. Click here for the original tutorial.
    ______________________________________________ The Background QUOTE 1. OK, lets start by
    creating a 320x100 document with white background in photoshop. Then Press "D" on your keyboard to
    have your colors reseted. 2. Go to "Filter/Render/Clouds". You will have something similiar
    to this: 3. Create a new layer. Then get the brush tool, and start brushing with black color on
    t....
  26. Learn The Ways Of Making Money Online
    This i sMy new Site, Hope it Helps (6)
    Hello Guys, I have made a New Site Enjoy it, hope it helps. My Site /laugh.gif'
    border='0' style='vertical-align:middle' alt='laugh.gif' /> Its Not Totaly Fnished ... merged
    posts. ....
  27. How Can I Learn Assembly
    where to Assembly Language Programming (14)
    Please help me in learning assembly ....
  28. Whats You Current Trick You Want To Learn?
    On skateboarding, inline skating, BMX (10)
    So what is the trick you just have got to learn or are trying to learn.... Since its basically my
    first time back on a bike since summer, my trick would have to be the bunnyhop 360....I hace
    succeeded at the 180 but hey once you got something down you have to go further lol...So what is
    your trick you want to learn?....
  29. Php Simple Login Tutorial
    Learn how to make a simple login! (63)
    I have been quite busy lately, trying to design and code my site (far from done XD). And after
    having learned how to make a simple login, I will try to write my own tutorial, for you
    /smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /> the tutorial Step 1
    : The first step in designing a member system is to plan out exactly what you need. A common impulse
    among programmers is to jump right in and start coding. I'll be honest and admit that I'm
    guilty of this more so than anyone. However, since I'm in control of this conversation (y....
  30. where did you learn html from?
    (89)
    HI, i am intresting in knowing where you began learning html of what inspired you to start learning
    html. which programs did you use or which progs dyu use?....

    1. Looking for learn, c, c,

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for learn, c, c,

*MORE FROM TRAP17.COM*
Similar
Taking The Linux Plunge - Want to help me learn Linux?
Learn To Appreciate Others!
Free 10 Day Affiliate Masters E-course - Learn how to make money online as an affiliate.
Should Children Learn "both" Theories?
Perl Regular Expresions Regex - Learn how to use regular expressions
A Prelude To Programming - What to learn? How to learn?
Learn Java Programming Language Online Step By Step
Team Fortress 2 Professional Spy Guide - I wrote this guide for people who want to learn how to play Spy
Learn Html, Css, C And C++ Online For Free - Wanna learn to write programs and/or make websites? You can do it fre
Give Me A Little Space, Please! [denied] - I like a free host for learn
Cool Site To Learn Languages - Learn to speak in Native accent
You Need To Be Bold To Be Unselfish - Lets Learn from Abraham of the Bible
Tutorial On How To Compile Your Own Mangos World Of Warcraft Private Server. - A great way to learn about how big MMORPGs work and are built.
Where Is There A Good Site To Learn Web Html?
Photoshop -- Double Stroke - Learn to create a neat-o text effect
Asian Food Recipes - Recipe to learn how to cook Asian food
History Of Eu Countries - What Shall Kids Learn In School?
Disabling Safe Boot On Windows Xp - Learn how to do it
Learn Html Quick And Easy - HTML, javascript, and CSS
Where/how Did You Learn Css?
Learn Russian - Basic Stuff You Need To Know
Learn To Fly - Flight Simulator X acts as a potential teaching tool for wannabe pilot
Wanting To Touch Up/learn My Html Again
What Was Your First Computer, And How Did You Learn To Use It? - After hours of searching which category this fits in, I couldn't f
Signature Tutorial - Learn how to make a complete signature
Learn The Ways Of Making Money Online - This i sMy new Site, Hope it Helps
How Can I Learn Assembly - where to Assembly Language Programming
Whats You Current Trick You Want To Learn? - On skateboarding, inline skating, BMX
Php Simple Login Tutorial - Learn how to make a simple login!
where did you learn html from?
advertisement



How To Learn C/c++



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE