cody said:
that's what i call an answer
i didn't know who he was
A good reason to "look before you leap"
i only knew how he reacted to my
question and his answer seemed to me a bit aggressive.
Many new visitors here get that impression.
People here have a wide variety of personalities.
Try to see past that, and I think you'll find this
place a good source of quality information.
i mean't "why C instead of C++". i assumed all C programmers would use C++
Why?
and so i said that this is no problem since in C++ they cann still use
c-functions
Nobody said that using C++ is a problem. Some said that
they're unable or unwilling to use it, for various reasons.
or static functions as they are the same as c-functions, basically.
Functions declared as 'static' share the same characteristics
in C and C++, with one exception:
C++ defines a construct 'static member function' which has
no counterpart in C.
iam sorry if i didn't made that clearer.
i didn't knew that.
Again, "Look before you leap"
"Ignorant" is not a noun. It is an adjective, used to
describe a person's level of knowledge about a given
subject. As in, "I'm ignorant of the exact arrival
time of the train, since I don't have a schedule."
Or, "I'm ignorant about auto repair, I've lever learned
it." "Ignorant" means "Don't know."
Ignorance is not a character flaw. But in my opinion,
denial of it when it exists (which is what you seemed
to be doing), is.
why do you think i asked this question?
To reduce your ignorance about C and C++,
I would hope.
i only wanted reasons why people still use C. ok now i have got enough
reasons.
- C is simpler than C++
- some people don't like OOP
- some people don't want to learn OOP
- some projects don't need OOP
OOP is not the only reason people use C++. C++
can be used with many other programming styles.
So make those last three:
- some people don't like C++
- some people don't want to learn C++
- some projects don't need C++
- some platforms dosn't provide a proper C++ compiler.
i didn' know that i would create such a large discussion.
Now you know.
so what do you advise? should i write in the subject of my next posting:
"warning! german poster with probably wrong capitalization, punctuation and
grammar"
Actually, yes, something like that. But keep the subject
line only about the actual question. But then in the body
of your message, write a short note at the top:
"My native language is not English, please excuse errors,
and ask if my message is not clear."
Many other non-English speakers post here, and this is
what most of them do.
If you post here very long, people will get to know you,
and this 'warning' will not be necessary every time.
i didn't know that my english is so bad. i would be very grateful if
somebody give me a hint what is wrong with my grammar.
Actually, after reading this, I believe your grammar seems
to have already improved. However, your capitalization needs
much work, though.
Compare:
I didn't know that my English is so bad. I would be very
grateful if somebody gave me a hint about what is wrong with
my grammar.
You don't need to be perfect, nobody is. Just do the best
you can.
that is correct all nouns, proper names and beginnings of a sentence are
capitalised.
In English, capitalize the first word of every sentence,
and all pronouns (for example "I") and proper nouns.
If your defense of your English is that
you're German, I would have expected too many capital
letters, not none at all.
you underestimated my lazyness :-[=]
Yes, sometimes I get lazy, too.
some commas in german are optional.
English has firm rules about commas, but hardly anyone
understand them all or agrees about them. I try to
use them where, if I were speaking, I would pause.
It seems to work for me.
Is it true that sentences are begun in lower case?
neither in english nor in german but my shiftkey is broken.
i brough is to the workshop last week but it is still not ready
But how did you write "C", "C++", "OO", and "OOP" in
your messages?
no, but you can use C++ without programming OOP sinc C++ is a hybrid
language
which supports various programming paradigms, including structured,oop,
functional and more.
Yes. But then why did you write above:
i only wanted reasons why people still use C. ok now i have got enough
reasons.
- C is simpler than C++
- some people don't like OOP
- some people don't want to learn OOP
- some projects don't need OOP
Three out of four imply that C++ == OOP and nothing else,
which is simply not true.
So it seems to me that either you still believe this,
or have changed your mind.
By the way, C++ does not have direct support for functional
programming. What you probably mean is 'procedural programming'.
oop need language support at least to a certain level.
No. Whatever built-in support is not there can be
written using existing language features in virtually
any language. It could even be done in assembly language,
especially one which has macros, if you have enough time.
when people programm
oop in C then it is certainly faked.
No. They use the language features which are available
to program in whatever paradigm they want. This does
not make it 'fake'. C++ is often preferred when doing
OOP, because of its built-in features which support it,
and help prevent making mistakes.
it was just an example how some people fake oop in c.
It's not 'fake'. Also, a function pointer inside a struct
can be (and is) used for other things besides OOP.
yes. i have good knowlegde about c++,c# and java. a OO-language needs
classes,ctors,dtors,virtual,abstract,static methods and access modifiers.
Some of those things people will say must exist as built-in
features in order to call a language a "true" or "pure" OO
language. There is always much debate about this, which I
doubt will ever result in any consensus.
But all of those concepts can be implemented in any language
at all. It often requires more work, but it can be (and is)
done.
i consider operator overloading as optional.
It's a very useful tool, but is not an OO concept.
I also often see it overused and abused.
does C++ have a concept of sealed classes? that are classes which cannot be
subclassed.
No. It doesn't need them. If you want to talk about
that further, post a question about it to comp.lang.c++
Many others have already asked about and discussed this
issue in that newsgroup, try reading the older messages
about it.
surely not. it was just an example cos c++ is the successor of c.
Not really. C++ was derived from C, but is not at all
intended to replace it.
thats what i meant. why use a tool or another when you have a tool which
combines both?
How large or heavy is the combined tool? How much
does is cost? I'd use the easiest to use tool that
does the job. C++ is a very large language compared
to C, and much more difficult to learn.
why use C when you can use C++ which contains C? thats what i meant.
Another misconception. C++ does *not* contain C. It has
many similar things, but many of them which *look* exactly
the same, will *behave* differently in each language, often
very subtly. This misconception is a source of many bugs
and incorrect programs (and arguments.
)
you can
use c++,
nobody will force you to use its additinal features.
But you must use the language itself, which is *different*
from C. The C standard library functions are all available,
but that's not the same thing as the *language*, which is
*not* the same.
iam indeed grateful as you pointed out that my question was misunderstood
here.
Perhaps. But we all know that you have misunderstood what
C and C++ are and are not. We tried to tell you this.
i was wondering why some people didn't understand it, now i know why.
It doesn't really matter why, but you didn't understand
about C *or* C++. We tried to tell you this.
Your previous comments seem to indicate otherwise.
nobody will throw away C. it still exists in C++
No, absolutely not.
as C++ is fully backward
compatible
No, absolutely not.
(at least C94 if iam correctly informed)
You have not been correctly informed.
Your previous comments seem to indicate otherwise.
Your previous comments seem to indicate otherwise.
i wanted to learn about C why people still use it and now i know why
Much more than you wanted to hear, I suspect.
me to..
now i know why iam always misunderstood here: it certainly is my bad grammar
That is only a small part of it. Most of us understood
you well enough to know what you were saying. You *definitely*
did *not* understand what C and C++ are and are not.
That's not a crime, or anything to be ashamed about,
all you need to do is learn. The best in the business
read and post here, and you can learn much about C from
them. I certainly have, and continue to learn more every
day. The same is true about C++ in the newsgroup comp.lang.c++
Good luck, and have a nice day.
-Mike