Thread: Learning C or C++

  1. #1
    Registered User
    Join Date
    Jun 2012
    Location
    Nigeria
    Posts
    15

    Learning C or C++

    Hello, am sorry if this is a wrong place to post this.
    Plz i wana go into software programming. Which language should i learn? C or C ++.

  2. #2
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Learn both.
    Or if you want to prioritize, tell us what you intend to work with.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  3. #3
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Learn one until you are reasonably competent in it, then learn the other. As for which one to pick first: if you will be taking academic courses or otherwise doing projects that require one of them, pick that one. Otherwise... well, it doesn't really matter as programming languages are tools, not cults (I hope).
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  4. #4
    Registered User
    Join Date
    Jun 2012
    Location
    Nigeria
    Posts
    15
    I wana learn ALL, but i need one to begin with. One which i can create softwares with, like 'e sword' though is written in visual basic. Academic courses would come later on.

  5. #5
    Registered User
    Join Date
    Jan 2009
    Posts
    1,485
    Quote Originally Posted by kinsomicrote View Post
    I wana learn ALL, but i need one to begin with. One which i can create softwares with, like 'e sword' though is written in visual basic. Academic courses would come later on.
    If you have no preference, throw a dice.

  6. #6
    Registered User
    Join Date
    Jun 2012
    Location
    Nigeria
    Posts
    15
    Quote Originally Posted by Subsonics View Post
    If you have no preference, throw a dice.
    Hmmmm. Not really good in stuffs like that. Which is good in creating softwares?

  7. #7
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by kinsomicrote
    Which is good in creating softwares?
    Both.

    You know, you might be better off just starting with something like learning Python with Computer Science Circles.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  8. #8
    Registered User
    Join Date
    Jun 2012
    Location
    Nigeria
    Posts
    15
    Quote Originally Posted by laserlight View Post
    Both.

    You know, you might be better off just starting with something like learning Python with Computer Science Circles.
    Am really sorry if am bugging you guys. Just that i don't wana have any regret by taking the wrong step. A good friend of mine is about to create a software like 'e sword'. The software (e sword) is wsitten in visual basic, amd its not compactible to other OS like Unix until an emulator is used. We wana create a better one with little resemblance to e-sword. Which programming language do u guys think would be great for this. I just intend to start with this before moving to other languages as time goes as i intend to go deep in programming. Hope my write-up wasn't that stupid. Lolz. Thanks

  9. #9
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by kinsomicrote
    A good friend of mine is about to create a software like 'e sword'.
    So, your good friend is a programmer?

    Quote Originally Posted by kinsomicrote
    The software (e sword) is wsitten in visual basic, amd its not compactible to other OS like Unix until an emulator is used. We wana create a better one with little resemblance to e-sword. Which programming language do u guys think would be great for this.
    Before you even select the programming language, you need to have a clear idea of what you intend to build. "Better one with little resemblance to e-sword" does not cut it.

    If your good friend is not a programmer, then I'm inclined to say that both of you are out of your league. Team up with people who can develop software, then work with them to implement this. If your good friend is a programmer, then your question is pointless: you should be consulting your good friend instead.

    Quote Originally Posted by kinsomicrote
    I just intend to start with this before moving to other languages as time goes as i intend to go deep in programming.
    If you intend to go deep in programming, then my suggestion of learning Python with that interactive tutorial could work fine as a starting point. Realistically, you wouldn't expect to even start planning your e-sword alternative any time soon, and the technologies that you may choose in the end may be very different from what you start learning programming with. (That said, along the way you might write toy projects that are simplified versions of that.)
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  10. #10
    Registered User
    Join Date
    Jun 2012
    Location
    Nigeria
    Posts
    15
    I'm grateful for your time and advice. Thanks a million times.

  11. #11
    Registered User
    Join Date
    Jun 2012
    Location
    Nigeria
    Posts
    15
    After learning Python, which language do u advise i learn.

  12. #12
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by kinsomicrote
    After learning Python, which language do u advise i learn.
    The point is not to to learn Python. The point is to learn the skills of how to solve problems by writing programs, how to reason about programs, how to debug programs, and of course fundamental ideas about algorithms and data structures. Choosing your next programming language will come when it comes, so don't worry about it. In this sense, learning programming with C or C++ can work too, but as you seemed all set to keep discussing which to learn first without actually learning anything, my suggestion of that interactive tutorial is to get you started on learning something properly. The rest will follow.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  13. #13
    Registered User
    Join Date
    Jun 2012
    Location
    Nigeria
    Posts
    15
    Quote Originally Posted by laserlight View Post
    The point is not to to learn Python. The point is to learn the skills of how to solve problems by writing programs, how to reason about programs, how to debug programs, and of course fundamental ideas about algorithms and data structures. Choosing your next programming language will come when it comes, so don't worry about it. In this sense, learning programming with C or C++ can work too, but as you seemed all set to keep discussing which to learn first without actually learning anything, my suggestion of that interactive tutorial is to get you started on learning something properly. The rest will follow.
    This being the case, i guess i'll concern myself with learning the programming skills you stated above. I've decided to begin with c++. Do you have any interactive tutorial on it (c++) just like the one you gave me above (I forgot to appreciate you for the link. I'm grateful.) and whic book is best to begin with? Thanks for your time.

  14. #14
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by kinsomicrote
    I've decided to begin with c++. Do you have any interactive tutorial on it (c++) just like the one you gave me above (I forgot to appreciate you for the link. I'm grateful.) and whic book is best to begin with?
    Unfortunately, no. I recommend the book Accelerated C++, but err... you need to get over the initial hurdle of installing a C++ compiler and using it without the book's hand holding first.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  15. #15
    Registered User
    Join Date
    Jun 2012
    Location
    Nigeria
    Posts
    15
    Quote Originally Posted by laserlight View Post
    Unfortunately, no. I recommend the book Accelerated C++, but err... you need to get over the initial hurdle of installing a C++ compiler and using it without the book's hand holding first.


    Ok. Thanks. I've got two compilers. Devcpp and code::block. Which is preferable??

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Learning Dos and learning Windows
    By blankstare77 in forum C++ Programming
    Replies: 8
    Last Post: 07-31-2005, 03:48 PM
  2. I'm learning C++, but need an example..
    By akrocks in forum Windows Programming
    Replies: 3
    Last Post: 03-15-2004, 08:04 PM
  3. Learning COM
    By minesweeper in forum Windows Programming
    Replies: 5
    Last Post: 03-03-2003, 03:30 AM
  4. learning C++ from C
    By gratyklz in forum C++ Programming
    Replies: 2
    Last Post: 02-23-2003, 02:09 PM