You are currently viewing a search engine-friendly (archive) version of this page.
View Full Version : I Love C !!!
MikeFoster
January 10, 2001, 03:57 am
Don't ye just looovvvve C!
I do!
I don't get to program with it as much as I use to, though.
Would you like to see some of my code? I use to play around with abstract data types, multi-tasking kernels, home-grown keyboard and video routines... Man, those were the days!
http://lineoflight.com/links/programming.html
------------------
Mike Foster, Moderator, Webmastering/HTML, HelpFromTechs.com (http://www.helpfromtechs.com/cgi-bin/ubb/ultimate.cgi)
afterthought
January 12, 2001, 12:41 pm
I have to agree.
When I first starting learning it, it seemed like I was programming poetry. (It still feels like that.) I enjoyed it because it was so simple and clean.
I'm still learning C now. I'm still a beginner, but I certainly am on my way to being better at understanding C (or shall I say more poetic in C?)
MF,nice link BTW. Good luck!
------------------
To be, or not to be . . .
Wait, what was the question?
<FONT COLOR="#800080" SIZE="1" FACE="Verdana, Arial">This message has been edited by afterthought on January 12, 2001 at 09:42 AM</font>
MikeFoster
January 12, 2001, 02:28 pm
Programming poetry...
That's cool! I like that!
Yes, I think C is a very elegant language.
------------------
Mike Foster, Moderator, Webmastering/HTML, HelpFromTechs.com (http://www.helpfromtechs.com/cgi-bin/ubb/ultimate.cgi)
reddsteel
January 12, 2001, 08:27 pm
What is the main different between C and C++?
------------------
:: reddsteel ::
Moderator => HelpFromTechs.com
In a world without fences, who needs Gates?
Coffee Pom
January 12, 2001, 10:56 pm
I think it's funny how they got the name C++. Very clever. http://www.helpfromtechs.com/ubb/smilies/smile.gif
------------------
MikeFoster
January 13, 2001, 01:14 am
C++ includes syntactical and semantical extensions which support object-oriented programming, while C does not.
C++ is a superset of C. Anything you can do in C you can do in C++. In fact, just because you're using a C++ compiler doesn't mean you're writing a C++ program - there's still a C compiler buried in there. And, unlike Java, it doesn't mean you're writing an object oriented program.
Looking at a C and C++ program side by side, the main difference you'll notice is the C++ class, and the syntax for using them.
A class is similar to a C struct or a Pascal record. But a class is much more. A class is a struct whose members can be variables and functions.
A class is like a user-defined type, and you can declare (instantiate) variables of that type (or class) just like you can declare a variable of type integer.
------------------
Mike Foster, Moderator, Webmastering/HTML, HelpFromTechs.com (http://www.helpfromtechs.com/cgi-bin/ubb/ultimate.cgi)
reddsteel
January 13, 2001, 11:10 am
Thanks Mike!
------------------
:: reddsteel ::
Moderator => HelpFromTechs.com
In a world without fences, who needs Gates?
afterthought
January 15, 2001, 11:00 am
"Anything you can do in C you can do in C++. In fact, just because you're using a C++ compiler . . ."
I did not know that!
Thanks, Mike.
------------------
To be, or not to be . . .
Wait, what was the question?
MikeFoster
January 16, 2001, 12:38 am
I guess you've noticed that I enjoy programming http://www.helpfromtechs.com/ubb/smilies/grin.gif
C++ was created by Bjarne Stroustrup in 1980. He worked for Bell Labs at the time. At first he named his new language C with Classes, but in 1983 renamed it to C++.
BTW, did you know that a C (or C++) compiler is the easiest way to learn assembly language?
------------------
Mike Foster, Moderator, Webmastering/HTML, HelpFromTechs.com (http://www.helpfromtechs.com/cgi-bin/ubb/ultimate.cgi)
Coffee Pom
January 16, 2001, 01:28 pm
I found this interesting comparison between Java and C++:
Java is often described in simplistic terms as "C++ without the pointers". And because Java is based on C++,
this is somewhat true. If you look at the source code of a Java program, you'd think you were looking at a C++
program because the syntax is almost identical. However, if you look more closely, you'll find that the structure of
Java programs differs from C++ programs. And as you study Java and come to know it, you'll find that it has
capabilities that C and C++ just don't have.
These are things that Java has in common with C/C++:
for, while and do while loops
if and switch statements
the relational operators are the same
they use the same arithmetic operators
both allow methods (functions in C/C++) to be overloaded
Here are things that Java has, that C/C++ does not:
object-oriented programming is enforced with Java because each application or applet must contain at
least one class
almost everything in Java is an "object"
it does not use pointers (it uses references to memory locations)
garbage collection is automatic
strings are not null-terminated
has no structures or unions
no typedef statement
no enumerated types
uses modifiers to place restrictions on variables and methods
local variables must be initialized before they are first used
Java provides many routines for doing graphics, networking, multithreading and multimedia as part of it's
standard library
It has also been said that Java is easier to learn and use then C and C++. I think one of the major reasons that
this is so is because of the extensive availability of reusable classes. The standard library of Java classes
provide so many things that the developer can reference in his own classes. If you need to network, networking
classes have already been written; if you want to multithread, multithreading management classes have already
been written; and the list goes on and on. All the developer needs to do is know how to use these existing
classes.
I suppose another reason that Java is probably easier to learn than C/C++ is that it does not use pointers like
those languages do.
------------------
<FONT COLOR="#800080" SIZE="1" FACE="Verdana, Arial">This message has been edited by Coffee Pom on January 16, 2001 at 10:29 AM</font>
MikeFoster
January 17, 2001, 12:06 am
Wow, that's great! Thanks Coffee Pom!
------------------
Mike Foster, Moderator, Webmastering/HTML, HelpFromTechs.com (http://www.helpfromtechs.com/cgi-bin/ubb/ultimate.cgi)
vBulletin Copyright © Jelsoft Enterprises Ltd., 2000-2009.