Lets speak of C/C++ Why use a Macro and fix a type? Template functions can do the work cleaner. template <class TYPE> void swamp(TYPE...
And I'm at your computer to see them ;) which is : compiler/linker OS example of errors code generating this errors ...
One more point: The strings are a normal point of memory problems. Many times in a system exist allot of object instances representing an equal...
After allot of searches like 'find . -type f -exec grep main {} -H \;' I implemented a small program :eek:. ;) This program uses the...
Let me be bad, the Bubble Sort is the best algorithm for near sorted lists:confused:. This means, if the elements are in there places or really...
Is time to go, or not?
I would set the Perl under Programming. Is +- correct to set PHP (can be defined as a Perl version to the net ;) ) inside the "Web Development"...
Many programs use the STDOUT to produce some normal output and the STDERR to show the errors. I'm actually working with the g++ that do this and a...
Notice that CGI can be done with any programing language. I have already done it with C/C++, Prolog and Perl. They are different things, so it's...
I worked with Perl for more than 5 years now and I almost never program for the web. Perl is used in many more environments than CGI. Can I...
The normal idea is to have an hash table, iterate over the array and using the elements as keys. Something like ::( my @array =...
sory for the code { my $counter = 0; sub getFreeFilename { while(1) { my $file_name =...
Even better lets do $counter a global variable. Since all this code is inside { }, the $count is just visible inside { } and will exist while...
Logic parts can be added to the name ;) But the important part is the cycle to find a acceptable name. Probably (I don't work with the web)...
This may be a good point to introduce the module Data::Dumper. This module is one of the most useful modules for this kind of debug....
Many times not logic names are necessary, MD5 can be used in here. I'm using something like: use strict; use Digest::MD5 qw(md5_hex);...
My first post in this site ;) For most of the cases you can use the variable $. So the code would come: while (<>) { print...
Separate names with a comma.