Sunday, July 26, 2009

Is C++ like javascript?

im right now going through like a 20 page tutorial of C++, and so far what i have gone through it seems very much like Javascript and PHP... is all of C++ like that or is it MUCH more complex than JS and PHP?

Is C++ like javascript?
C++ is much more powerful than Javascript and PHP, but knowing either should be helpful when learning the control structures.





Both PHP and Javascript generally use web pages for their input and output. All you have to do is react to button presses and manipulate page elements.





C++ gives you ultimate power over the interface, memory usage, etc. It can read/write files, use the graphics and sound cards and pretty much anything else.





Microsoft made Windows XP in C++. Valve made Half-Life 2 in C++.
Reply:No the real and original style of C++ totally difference then Javasctipt. Javascript syntax matched with C only
Reply:definitely no... Java script is web based scripting language designed to to bring the beutiful sides of object oriented programming to the web fanatics... while c++ in the other hand is designed for the strong foundation of general programming... windows is created from the combination of c++ languages(in all dialects) ...
Reply:C++ is much more complex than Javascript. Javascript is mainly used for client side interaction such as in the browser. C++ is used on server side or for full scale applications.
Reply:No. They are not even close.
Reply:congrats on figuring that out! they are very similar in the structured programming side.





however there are many differences. Objects are done much easier in JS. the code is compiled to machine language in C (much faster).


C has declarations for types. JS does not. (and often in sleazy code there are no declarations). There are security limitations in JS as to what you can do off the page you are running in. C (and C++ can run wild and bring the system to it's knees! The worst JS can do is run a tight loop in the browser.





They both have there place. PHP %26amp; PERL %26amp; PYTHON %26amp; RUBY are all better suited to server side programming than C++.





They both have libraries(api's) that make the job easier. I choose Javacript, and use jquery as my library.. it makes coding tough tasks as simple as a couple calls!
Reply:C++ is similar to JS, but its much more too. As you delve deeper into C++ you will notice that it has WAY more than JS. For starters look up linked lists, vectors and pointers.
Reply:yea, they do have some similarities, but javascript is a more advanced programming language than c++ and they are still very different dispite their similarities.
Reply:Java is much newer than C++.


http://en.wikipedia.org/wiki/Comparison_...

florist shop

No comments:

Post a Comment