You can still do all the "C basics" in Java, just using different syntax. System.out.println() instead of printf()... So why not learn it on Java first, so he doesn't have to re-learn it all when he moves from C to Java?
If you're going to program in C++ then I'd probably recommend learning the basics of C first. But Java & C are quite different from one another, so unless you're planning on using both languages, there's no point in learning them both.
I learned C first, then C++ & Java, but I don't think it would have mattered which order I learned them in.
i learnt C++ then VB then C# then J2SE, then J2ME then C, i would say C is harder than any of those
SE => standard edition
EE => enterprise edition
ME => micro edition
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
Thanks, I know what they stand for, but what's different about how you use them? Is it just some extra or fewer Java library classes, or is there any difference in the language itself?
I don't know about ME, but EE adds extra classes and tools, at least from what my Java enthusiast friends tell me. Personally, I have only ever used SE.Is it just some extra or fewer Java library classes, or is there any difference in the language itself?
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
Why does it "have" to be Java or C?
There are a few languages that are very likely to be the "best" chocies here:
1. Python - it's a "simpler" language than Java, but has all the benefits.
2. Perl - Nor is this a complex language, but it's very powerful and has lots of database connecting functionality.
3. PHP - It's commonly used for web-intefaces, and has LOTS of data-base interfacing capabilities.
Sure, you can use, C, C++ or Java for any of this too.
Part of the question is "what do you actually want to do with the data". For most instances, the data-base access itself is the bulk of the processing, and the bulk of the code involves forming SQL statements and displaying the output data, rather than actually performing for example calculations ON the data, which means that whatever language you choose will have little impact on the time/performance of the processing, but choosing a language with easy-to-use and comprehensive string handling and dynamic array bindings (like C++ std::maps or similar) will help in making the access of the output of the database easy.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
I second Perl. Absolutely wonderful, then with some programming (or rather, scripting) skills under your belt you can decide on Java or whatever.
Not a personal fan of Java, but hey it certainly has is purpose (other than Solaris of course ) -- just like everything, the tool for the job! Not like you'd try hammer nails with a screw driver... Well I hope not
I like how learning C makes you realize how basic a computer's basic operations can be (and even more basic when you learn assembly, etc.). I think it helps train you to realize how the more advanced features of languages work (ie. pointers are used under the hood in other languages), and let's you better appreciate advanced data types and features of other languages.
An advantage or two of C is the close-to-raw power and speed of your machine. Two advantages of Java is the portability as well as the quickness with which you can write programs. You trade off some of those features in exchange for others.
Thank you all for your responses, I really appreciate that.
What do you program in C ? database? networking? games, .. ? does it take a lot of time?
Thank you very mucht, I can understand you that you welcome me to the forum using that code of C language but the compiler of C can't understand you, because you forget ; and #
The difference I see in that code is the C languge is compact!
What does that mean, "I don't have to worry about memory management" and why not in Java ?
Can you pleans give me an example and tell me which libraries you are talking about ?
In Java you have for example imports java.sql.*; don't you have this in C ?
I don't like the syntax of C++ like cin>> and cout<< but they are both OO.
You right, but I said in the future after mounths or one year of learling the basics ..
What are those advantages and disadvantages?
I want in the future my project runnig all free, I want to use free compiler, ide, dbms, os, .. everything except hardware
Oh that one!! yes thanks ..
Yes I am going to learn the basics of programming in C like:
variables, constants, expressions, statements, declarations, data types, chars and arrays of chars (Strings), iterations using while and do while, slections with if and else and switch case, arrays, functions, ... that menas I will attack you with questions on this forum hhhh
Thanks
cin << and cout >> are for beginners. Well, mostly anyway.
And you don't have to use them either. C++ can be strictly C too.
So far as I know, Java is more web-oriented; there's no such thing in C/C++ - you need to have external libraries for that. In C, you need to explicitly allocate and free certain type of memory, but AFAIK, in Java you do not (this is not necessary in C++ either, if you do it right).Code:What are those advantages and disadvantages? I want in the future my project runnig all free, I want to use free compiler, ide, dbms, os, .. everything except hardware :)
But for raw performance and Windows-type apps, C/C++ is better/faster.
I believe there's a reason why most people/companies write games and applications (for Windows) in C/C++ rather than Java.
Yes, in Java there is applet like this: http://www.physics.uoguelph.ca/apple...st2/index.html
and they are indeed web-oriented but in java you can programm applications as well.