Thread: c questions again. Please answer.

  1. #31
    Registered User
    Join Date
    May 2011
    Posts
    21
    Quote Originally Posted by Inanna View Post
    You can do anything with C that you can do with C++. But C++ makes a lot of things easier and gives you more options. C++ is also much bigger and harder to learn. I think unless you need C for some reason, like programming on an embedded platform without a C++ compiler or the available C++ compilers suck, just learn C++.
    so for embedded platforms i need c, right?

  2. #32
    Registered User
    Join Date
    May 2010
    Location
    Naypyidaw
    Posts
    1,314
    You seem not mature enough yet to program. judging from your post. erm.?

  3. #33
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,949
    so for embedded platforms i need c, right?
    So again, I ask what are you looking for?

  4. #34
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    Quote Originally Posted by Bayint Naung View Post
    You seem not mature enough yet to program. judging from your post. erm.?
    I disagree, many 8 year old kids have learned to program.
    Edit: He might not be smart enough; but, he is likely old enough.

    Tim S.

  5. #35
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    Personally, I'm largely ignoring the sms/skiddie wannabe.

    Whilst you can do "anything" in C, it is bone-headed to believe that you should do "everything" in C. To that end, since you will invariably learn multiple skills, where you start doesn't really matter (all roads lead to Rome as they say).

    Second, the syntax for C can be learned in a few days. Getting to the point where you no longer make any of the 1000's of dumb mistakes that await you takes MANY years of practice.

    Third, regardless of whichever language you choose, if you don't learn "HOW TO PROGRAM", you're screwed anyway. So again, where you start has little bearing on the arrival at some destination.
    Being able to say "I can write 'hello world' programs in 100 different languages" isn't a particularly notable achievement.

    It might come as a bit of a surprise, but writing a 100K line program is only 10% worrying about where all the braces and semi-colons go. There are a whole range of other skills needed for analysis, design, debugging, testing etc. If you're clueless about all of those, you're basically stuck at the level of solving homework questions. You do not (and cannot) write a substantial program from just sitting at the keyboard and hacking away at the code.

    FWIW, if you don't know how to program in any language, then C is a pretty bad choice for a first language.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  6. #36
    Registered User
    Join Date
    May 2011
    Posts
    21
    I finally understand what object oriented means. Can u program object oriented in c? Someone, the same person who explained me what object oriented means, told it is possible but i dunno if he is roght, since c is no object oriented. Can c do everything c++ can? Can asm do everything both languages can?
    Last edited by malvado; 06-04-2011 at 01:30 PM.

  7. #37
    Registered User caroundw5h's Avatar
    Join Date
    Oct 2003
    Posts
    751
    Quote Originally Posted by malvado View Post
    ...
    I'm serious dawg. I really wanna learn. Please stop beeing sarcastic. Just help me. Which language should i pick in your opinion?
    lol. this really gets me mavado. But I understand where you're coming from so I'll help you out.


    most modern languages that are in use today were made using C. These include C++, Java, Objective-C, C#, Python, JavaScript and on and on.

    the forum that you're on right now use PHP which is made from C. The most used Server that delivers millions of web pages a day - Apache - is made from C.

    the operating system that runs the iphone, ipad and mac at the core is made from C.

    If you're on windows now, at its core is all C code. I can go and on with examples of what applications and hardware has C code inside it, however I'll stop there and tell you this: "When the concrete cases are understood, the abstractions are readily made".

    google it, you'll find the author.

    the point is this malvado: All these programs and other languages were made from C. They aren't necessarily better as some ppl on here will tell you. Simply tweaked to accomplish a specific task. whether that be making larger and more complex programs, or being able to run on multiple platforms etc.

    How were they able to accomplish this. because they understood the fundementals. The C programming language doesn't hold your hand like others do. If you learn it, you will learn it like all of us did. making errors, getting frustrated and sometimes even banging your head against the wall. Howeverrr. when you have learned it - or enough of it that you're comfortable with it - you will realize that you could do anything without limits, that you put your mind to. why? because you understood the fundamentals.

    What do you want to do, hack Kinect and show some real time 3d teleconferencing features? want to write a multimedia or GUI program in Windows, Linux, or Mac OSX without hardly changing a line of code? or maybe you want to create a new protocol that does something on the web? Would you like to create a Object oriented library so you can create objects in your code or even understand the essence of OOP? Do you want to create another mars rover or video games for a a particular platform.

    Because the C programming language is what it is. You will learn a lot about computers, memory, algorithms and libraries and such. You will learn the fundamentals and then, it's just about where your imagination wants to take you.
    Warning: Opinions subject to change without notice

    The C Library Reference Guide
    Understand the fundamentals
    Then have some more fun

  8. #38
    Registered User
    Join Date
    May 2011
    Posts
    21
    Quote Originally Posted by caroundw5h View Post
    lol. this really gets me mavado. But I understand where you're coming from so I'll help you out.


    most modern languages that are in use today were made using C. These include C++, Java, Objective-C, C#, Python, JavaScript and on and on.

    the forum that you're on right now use PHP which is made from C. The most used Server that delivers millions of web pages a day - Apache - is made from C.

    the operating system that runs the iphone, ipad and mac at the core is made from C.

    If you're on windows now, at its core is all C code. I can go and on with examples of what applications and hardware has C code inside it, however I'll stop there and tell you this: "When the concrete cases are understood, the abstractions are readily made".

    google it, you'll find the author.

    the point is this malvado: All these programs and other languages were made from C. They aren't necessarily better as some ppl on here will tell you. Simply tweaked to accomplish a specific task. whether that be making larger and more complex programs, or being able to run on multiple platforms etc.

    How were they able to accomplish this. because they understood the fundementals. The C programming language doesn't hold your hand like others do. If you learn it, you will learn it like all of us did. making errors, getting frustrated and sometimes even banging your head against the wall. Howeverrr. when you have learned it - or enough of it that you're comfortable with it - you will realize that you could do anything without limits, that you put your mind to. why? because you understood the fundamentals.

    What do you want to do, hack Kinect and show some real time 3d teleconferencing features? want to write a multimedia or GUI program in Windows, Linux, or Mac OSX without hardly changing a line of code? or maybe you want to create a new protocol that does something on the web? Would you like to create a Object oriented library so you can create objects in your code or even understand the essence of OOP? Do you want to create another mars rover or video games for a a particular platform.

    Because the C programming language is what it is. You will learn a lot about computers, memory, algorithms and libraries and such. You will learn the fundamentals and then, it's just about where your imagination wants to take you.
    I finally understand what object oriented means. Can u program object oriented in c? Someone, the same person who explained me what object oriented means, told it is possible but i dunno if he is right, since c is no object oriented. Can c do everything c++ can? Can asm do everything both languages can?

  9. #39
    Registered User
    Join Date
    Nov 2010
    Location
    Long Beach, CA
    Posts
    5,909
    Both C and C++ get compiled to assembly, which then gets turned into machine code. Given that fact, yes, everything you can do with C, you can do with C++ or assembly. Each language is better suited for some tasks and worse for others, but no one language is best for everything.

    I would bet serious money that you don't really understand what object oriented means, at least not fully. C is not object oriented. There are certain features of OO languages you can implement in C, but they are not there by default and it is a god awful amount of work to put them in there. If you need OO features, write in C++. If you need smaller, more efficient code, write in C. If you have to do some tricky hardware programming, or you're smarter than all the compiler writers, use assembly.

    If you can't understand what we've been saying by now, I think there's no hope for you. Perhaps a few more years of programming and maturing, and you will understand what we've been trying to tell you. I move for this thread to be closed before you come back and ask the same ridiculous question for the umpteenth time.

  10. #40
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    This repetitiveness is, well, repetitive.
    You've basically asked "can c do...." several times now, so I think you've got all the answers you're going to get.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Answer to these questions
    By mdennis10 in forum C++ Programming
    Replies: 3
    Last Post: 04-19-2011, 07:48 AM
  2. have 5 min to answer
    By juststartedC in forum C Programming
    Replies: 7
    Last Post: 10-11-2007, 05:26 PM
  3. A couple of questions that someone might know the answer to...
    By Finchie_88 in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 04-15-2005, 08:26 AM
  4. Please answer this
    By Lurker in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 02-25-2004, 11:43 AM
  5. Questions ab an answer...
    By JohnMayer in forum C Programming
    Replies: 8
    Last Post: 08-11-2002, 11:06 PM