I have been learning C++ for a week now, everything im learning seems to be similar to JScript ... but just uses diff key words. To be honest lots of languages seem similar to JScript (coding wise). What do you guys think?
Or maybe it's the other way around? C++ was around long before Java and Javascript, and its forerunner, C, has been around longer than a lot of the people posting on Tek-Tips. A lot of computer languages are based on C/C++ in some form or another, just like a number are based on Pascal.
No, each language has its own idiosyncracies and special features. The concept of object-oriented programming is similar, case sensitivity in function and variable names is the same, and some of the syntax and punctuation is similar. I learned C++ long before I started Javascript, and it's compeletely different animal entirely.
There ARE a lot of differencies (or, as trollacious said, idiosyncracies). For example, C does not even HAVE a concatenation operator for strings, that requires a function call. PERL use the period as it's string concatenation operator. Javascript uses the plus sign. For historical reasons, VB can use the plus sign in many situations, but that can also cause unexpected errors to pop up - VB's official string concat operator is the ampersand.
Tracy Dryden
Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.