Saturday, May 22, 2010

Getting started with C++ (a few questions)?

I'm very new to this and want to get started in it. Would this be just as easy as learning PHP? How would I find out if my host supports it? How are C++ pages saved (for example, PHP pages are saved as .php)?

Getting started with C++ (a few questions)?
C++ compiles into an executable. It is extremely powerful, and somewhat complex as a language.
Reply:C++ is a high level object oriented language with strong typing. PHP is a scripting language. A could contain an integer, a date or an object at any time during program execution.





There are no C++ "pages" as such. You cannot really use C++ in lieu of PHP for web pages. In ancient times, there was a CGI (common gateway interface) to write a web application in C++, but that C++ program would just write HTML to an output stream which would be served like a web page. That approach was entirely non-visual (you could not see the web page until it was written out by the program), it was inefficient since a large program had to start up, not scalable (every user request required the program to be invoked), and not robust: a simple error brought down the entire server.





No wonder they made progress!





It is still possible to write services that provide data used by web pages. Some people write HTTP pipelines in C++.





As the other poster points out, C++ is still the workhorse to write operating systems, database management systems, office software, photoshop and much more.
Reply:This is easy. You just have to learn input output files and how procedures are written. You can get free IDE for C++. The vendors are Boroland. You need to set the path in IDE for stdio and lib files. If u are using .net framework then u need not to save the path. The C++ files are saved with .cpp extension. This is basically used for system programing, and entirely different from PHP
Reply:C++ is not a web scripting language. It is a heavy duty programming language used for writing application programs like Microsoft Word, Firefox or almost any other program you can install on your computer.
Reply:If you want to do do web programming you might want to check out Java, javascript or C#

liama-song

No comments:

Post a Comment