Share this post! | Vote this! |
|
So you want to learn C (or C++), and you already know Java--good for
you! Once you've learned one programming language, the next one will be
easier; you've already gotten past challenges like how to think about
programming, how to design basic programs and algorithms and how to debug.
With C (or C++), you'll learn about a powerful, high-performance
lanugage that provides you with direct access to memory and native
libraries without JNI.
Java, C and C++ have a pretty similar syntax for basic concepts. Most of the basic constructs like if statements, loops, function syntax, switch case statements and concepts like recursion are still valid. Many other concepts like the syntax for comments, and the idea of static class variables, also hold in both Java and C++. Many of these differences are covered by the Java vs C++ syntax cheat sheet.
There are some larger differences between the languages though. Once you've gotten your feet wet and found the really basic stuff like main being a free-standing function rather than part of a class, or the fact that you use cout/cin for output/input in C++ or printf/scanf in C, you'll want to start drawing specific comparisons between Java and C++. more...
Java, C and C++ have a pretty similar syntax for basic concepts. Most of the basic constructs like if statements, loops, function syntax, switch case statements and concepts like recursion are still valid. Many other concepts like the syntax for comments, and the idea of static class variables, also hold in both Java and C++. Many of these differences are covered by the Java vs C++ syntax cheat sheet.
There are some larger differences between the languages though. Once you've gotten your feet wet and found the really basic stuff like main being a free-standing function rather than part of a class, or the fact that you use cout/cin for output/input in C++ or printf/scanf in C, you'll want to start drawing specific comparisons between Java and C++. more...
0 comments:
Post a Comment