| | |
C++ CGI Scripts
Please support our C++ advertiser: Programming Forums - DaniWeb Sister Site
![]() |
I have been writing some CGI scripts in C++, and I was wondering if anyone else has done the same? I have built a pretty decent sized library of functions I use a lot for formatting form inputs and such. The reason I chose C++ is because I'm so familiar with it. I was wondering if I should do myself a favor and learn a language a little more popular for CGI scripting. From what I know so far, perl or bash scripts wouldn't be as portable and reusable as c++ code would be. What is everyone's opinion on using C++ vs other languages like Perl or PHP
•
•
•
•
Originally Posted by Narue
>What so funny _jsw?
C++'s string handling capabilities are horrible. Not the worst, that's a spot reserved for C, but pretty low on the totem pole. Anyone who says that C++ is good at text manipulation clearly hasn't don't much of it. That's what's so funny.
:cry:
Last edited by iamthwee; Jun 12th, 2006 at 12:00 pm.
*Voted best profile in the world*
>I admit the perl regex library out-do c++ style strings...
Regex isn't a library, it's built into the language.
>c++ style strings still support all these
Primitive operations that I would expect from any string type. That's not exactly an argument that C++ strings are powerful.
>there is nothing stopping you from using c++ with the boost library
Oh, then that means I can counter you with CPAN?
Regex isn't a library, it's built into the language.
>c++ style strings still support all these
Primitive operations that I would expect from any string type. That's not exactly an argument that C++ strings are powerful.
>there is nothing stopping you from using c++ with the boost library
Oh, then that means I can counter you with CPAN?
New members chased away this month: 5
>Regex isn't a library, it's built into the language.
That's what I meant. He he.
>Primitive operations that I would expect from any string type. That's not exactly an argument that C++ strings are powerful.
Hmm, but what separates perl from c++? The fact that the regex utilities are built in as opposed to the boost libraries in c++ that are not?
>Oh, then that means I can counter you with CPAN?
Yes you can. :lol:
That's what I meant. He he.
>Primitive operations that I would expect from any string type. That's not exactly an argument that C++ strings are powerful.
Hmm, but what separates perl from c++? The fact that the regex utilities are built in as opposed to the boost libraries in c++ that are not?
>Oh, then that means I can counter you with CPAN?
Yes you can. :lol:
*Voted best profile in the world*
•
•
•
•
Originally Posted by iamthwee
Hmm, but what separates perl from c++? The fact that the regex utilities are built in as opposed to the boost libraries in c++ that are not?
C++ Syntax (Toggle Plain Text)
#!/usr/bin/perl -ap eval(("\$s[-2]$_=pop\@s",'push@s,$_')[!/^[-+*\/]$/])for@F;$_="$s[-1]\n"
Nothing beats having a one-line RPN calculator, too.
Last edited by Rashakil Fol; Jun 14th, 2006 at 2:40 pm.
All my posts may be redistributed under the GNU Free Documentation License.
![]() |
Similar Threads
- running Perl/CGI scripts under Tomcat server (Perl)
- SSI and CGI : Capture a value? (ColdFusion)
- HTML form action="env.cgi" question (HTML and CSS)
- Serving up html using cgi-perl (HTML and CSS)
- Having a problem trying to install CGI::Session on Mac OS X (Perl)
- weird cgi problem (Linux Servers and Apache)
- When a host says "included scripts" (Networking Hardware Configuration)
Other Threads in the C++ Forum
- Previous Thread: "Active" files and moving/changing paths
- Next Thread: Read/write to same file > once, Help
Views: 3325 | Replies: 14
| Thread Tools | Search this Thread |
Tag cloud for C++
6 api application array arrays based beginner binary bmp c++ c/c++ calculator char char* class classes code compile compiler console conversion convert count data delete deploy dll download dynamiccharacterarray encryption error file format forms fstream function functions game givemetehcodez graph homeworkhelp iamthwee ifstream input int java lib lines list loop looping loops map math matrix memory newbie news number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg search simple sort sorting spoonfeeding string strings struct temperature template templates text text-file tree url variable vector video visual visualstudio void win32 windows winsock wordfrequency wxwidgets







