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

2007-10-13 13:22:41 · 3 answers · asked by Richard Boolean 2 in Computers & Internet Programming & Design

3 answers

if u want to add .exe file then u have to upload it if u just want code then copying and pasting or zipping and uploading both may work

2007-10-13 18:47:40 · answer #1 · answered by i_am_the_next_best_one 5 · 0 0

Do you mean post a c++ program as a cgi script? It's actually quite easy, and in my mind resembles wrapping html in c++ syntax.

Ex:
cout << "Content-type: text/html" << endl;
cout << "

Hello World!

";

Will simply output "Hello World!" in the browser (if I typed it correctly). Note most of the code is simply wrapping HTML tags in a cout (which the server will redirect to the browser for rendering, which /then/ will output to the screen) statement. Getting input is different, and isn't typically done via cin (somehow I did this before, but haven't been able to repeat it since, and AFAIK it isn't supported). Read the link I provide below for more on that and other C++ CGI things

If this isn't what you mean, and simply mean "upload a file", check with your server's ISP or bloghost for that (it may not be supported by the server).

2007-10-13 20:54:14 · answer #2 · answered by earl71972 2 · 0 0

A link? Zip it up in a file and browsers would recognize .zip as a file to be downloaded. This Blog must know and let you post blogs with HTML or equivelent, unless you are talking about C++/CGI, in that case, good luck, you have long way to understand all of this.

2007-10-13 20:55:24 · answer #3 · answered by Andy T 7 · 0 0

fedest.com, questions and answers