----- Original Message ----- From: "Brett McCoy" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Thursday, May 29, 2008 3:54 PM Subject: Re: [c-prog] functions in c
> On Thu, May 29, 2008 at 4:23 PM, Trent <[EMAIL PROTECTED]> wrote: > >> C++ is an extenstion of C, and has the ability of making objects, while C >> cannot and is based on programming functions. > > Not quite. C++ was based on C for various reasons (portability and > efficent code generation), but should be treated as a separate > language. > "C is a general-purpose, block structured, procedural, imperative computer programming language developed in 1972 by Dennis Ritchie at the Bell Telephone Laboratories for use with the Unix operating system. It has since spread to many other platforms. Although C was designed as a system implementation language, it is also widely used for applications. C has also greatly influenced many other popular languages, especially C++, which was originally designed as an extension to C." > FWIW, you can create do object-oriented programming in C... just not > the same way you do in C++. > Only thing I can think of that C comes close to OOP would be the use of structs. > -- Brett > ------------------------------------------------------------ > "In the rhythm of music a secret is hidden; > If I were to divulge it, it would overturn the world." > -- Jelaleddin Rumi >
