English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I mean like upload a C++ program onto the internet so when someone would go to it, it would output it as HTML, almost like as in a PHP script. I know it is possible because at least in the beginning, Google used C++ for efficiency. I am very new to C++ and just got a book about it yesterday, and if I don't put it on the internet like I want to, then that would be a waste of money for the book. So how do I put the C++ program onto my website? Also, do I have to install anything onto the server?

2006-07-16 15:49:04 · 3 answers · asked by Matt 2 in Computers & Internet Internet

3 answers

To do what you are talking about, you'd have to write your own web service as well. The short answer is that you aren't going to be able to do this as a novice. You'd need years of heavy experience to get to the point where you could do what you are describing.

So, go back and trade in the book for another on on C#. You can use that to build ASP.NET web sites and do what you are trying to do more closely.

2006-07-16 16:38:00 · answer #1 · answered by cliffinutah 4 · 0 0

Firstly, c++ is a programming language, and HTML is a mark up language.

A programming language tells a computer what to do.

A mark up language tells a program how to display the content on a computer, whether a printer, the screen, etc.

The web browser you are using is a program that parses, reads, the mark up language and determines how to display it programmatically (through the program).

I think what is meant by google is their implemented c++ code for utility program, like their web bot that searches the internet for links, etc. This program would probably run on a server and only interact with files and not how they are displayed.

With all that out of the way, I am not sure if you mean to write a c++ program that will take arguments from a program like the browser, and return the contents that has been requested.

Ie, if the browser requests to look at a page, and you have some XML or so is used to display the page, the browser will request the information from the server.

Your c++ program could take these arguments, and find the appropriate content and return it to the browser. You could even generate the content if you needed to.

However, there are other technologies for doing the same thing. Java Server Pages (JSP), Apache, etc, but there will force you to learn yet another language. Have a look at Apache first at
http://www.apache.org/

Whereas, if you mean just to allow someone to view the source of your cpp code, then uplaod just the source, and hopefully your browser will be smart enough to know it is just a text file and be able to open and view it in the browser. Sometimes the browser asks if you want to open or save, just open it, if you trust the source.

2006-07-22 06:27:49 · answer #2 · answered by Mark aka jack573 7 · 0 0

nope, yet you need to use it to launch information superhighway explorer via utilizing basically typical c++ if ie is on the direction then. if its no longer, then you definitely would desire to artwork out the direction by some capacity and bypass the full factor to the gadget call.

2016-10-08 00:15:10 · answer #3 · answered by Erika 4 · 0 0

fedest.com, questions and answers