mathmate
Members-
Content Count
7 -
Joined
-
Last visited
About mathmate
-
Rank
Newbie
-
I just did, using Borland C++ and command-line compiler, without changing a iota in the source code (cut and paste). There were a few warnings like: Warning C:\tmp\obfusca.c 6: Call to function 'main' with no prototype in function main Warning C:\tmp\obfusca.c 6: Call to function 'main' with no prototype in function main Warning C:\tmp\obfusca.c 6: Call to function 'main' with no prototype in function main Warning C:\tmp\obfusca.c 6: Call to function 'main' with no prototype in function main Warning C:\tmp\obfusca.c 7: Call to function 'main' with no prototype in function main Warning C:\tmp\obfusca.c 7: Call to function 'main' with no prototype in function main Warning C:\tmp\obfusca.c 14: Call to function 'main' with no prototype in function main Warning C:\tmp\obfusca.c 15: Call to function 'main' with no prototype in function main Warning C:\tmp\obfusca.c 16: Call to function 'main' with no prototype in function main Warning C:\tmp\obfusca.c 16: Call to function 'main' with no prototype in function main Warning C:\tmp\obfusca.c 17: Call to function 'main' with no prototype in function main Warning C:\tmp\obfusca.c 17: Call to function 'main' with no prototype in function main Turbo Link Version 1.50 for Win32 Copyright © 1993,1994 Borland International and executable code produced exactly the output as claimed! Truly amazing and mind-boggling.
-
Perhaps the answer is a little tardy, but here is my share anyway. Perl is an (or another) interpretative language that gets lots of things done in a short time for many reasons. One of the features, not necessary an advantage for some, is that the commands are very succinct: type very little, get a lot done. For those of you who know what APL is, you know what I mean. However, the real reason behind Perl's efficiency can be attributed to the extensive libraries. They are so rich in Perl, and so practical, that you can make a program to access the Internet in a matter of minutes, calculate moon phases, or satellite locations for GPS applications at any moment or place, do automated file manipulations or archives, schedule jobs, etc. One of the problems of today's windows for the good old DOS users is to write simple scripts like in Unix. Perl can handle that easily. Best of all, Perl is free, always free, so are the libraries, so are the updates. No need to pay for new versions or upgrades every year or else your program will stop operating properly! That, I think is worth something!
-
As buckroe2 mentioned, the split character you supply is a regular expression, which can be translated into one single character or many characters. In your particular case, many different versions would work, as long as it translates into the single character /. The empty lines represent a null field caused by the double slashes // . The following expressions all translate to a single /: "/", '/', '[/]'. In a regular expression, single quotes will cause an interpretation 'as-is' without further translation. Brackets [] will enclose alternative characters, and contents of "" will be further translated according to regular expression rules. Perl.org has an excellent tutorial on regular expressions that explains everything about it: http://perldoc.perl.org/perlretut.html
-
How Many of You Use the C Programming language?
mathmate replied to red_dragon_here's topic in Programming
I started using the C programming language quite a few years back. Although at the time I found it difficult to use because of the lack of a String primitive, in retrospect, I find that it actually helped me understand the concept of pointers.I was and am still using Borland C (and C++) using command line compiler, even though an IDE is available. I have Microsoft's C++.net, but I rarely use it. I use C and C++ mostly for numerical calculations, applications that do not require GUI, tests, and so on. I still find it an excellent compiler for speed and flexibility. -
It depends on what you already have. If you run on Windows XP and would like to install ActivePerl, you can follow the instructions shown in: http://forums.xisto.com/no_longer_exists/ go under Programming Languages (Perl) and under installation. For the Perl (CPAN) modules, if you have ActivePerl installed in the default directory of c:/Perl, then use the DOS screen , do cd c:/Perl/site/lib followed by ppm You will see a PPM> prompt from which you can get help by typing help. To search for a particular subject, do search <subject>, for example search cpan the first token of each line displayed is the name of the module that you can install, and all you have to do is to type install <name of module>, for example install cpan If you run under Linux or other platforms, the proedure should be similar, but the directories may differ. Note also that under ActivePerl, the modules available are different from those displayed under the Perl tutorial. The following link includes many useful documents worth reading: http://perldoc.perl.org/ from which the installation of modules is further documented in: http://search.cpan.org/dist/perl/pod/perlmodinstall.pod
-
I come from a long way, and up to last year, my favourite Java (and other text editors) is (don't laugh) vi.I like it because it finds the matching []{}()<> with the % key. However, being an older generation editor, it is limited to 24 lines, which developed a squished style in my code, like writing a whole method on the same line.Since then, I discovered textpad, NetBeans and JCreator.I think they are all good, and I am mostly using Textpad because of its simplicity and multi-function. I do programme in other languages at the same time, so the capacity to display syntax of different languages (Perl, Java, C, C++) with the same editor is a plus.If you are a Java fan and do nothing else, I suggest you invest your time in JCreator, NetBeans or Eclipse.The free version of JCreator is already very good and easy to use. It is not memory intensive and is simple enough to use. However, if you want the auto-completion feature (display of the possible methods or constants related to an instance as you type), you'd need the paid version, nothing expensive.Netbeans has the auto-completion feature, and appears to be a little more memory intensive. However, if you have lots of memory, and have a Pentium 4, you should have no problems.I have no comments for Eclipse, because I have not used it. However, for those ready to invest a career in Java, it would be definitely worthwhile learning it, as it is more robust and probably handles a larger project.
-
According to the Perl tutorial, the current character set is ASCII, and characters within the set can be searched. and note 10 says For curiosity, I gave it a try, and the following code works with accented character ŕ (alt-133). if($line1 =~ m'ŕ'i){printf("ŕ is in %s\n",$line1);} linenums:0'>$line ="ABCDE";$line1="ŕbcdé";if($line =~ m'a'i){printf("a is in %s\n",$line);}if($line1 =~ m'ŕ'i){printf("ŕ is in %s\n",$line1);} and the result is: a is in ABCDEŕ is in ŕbcdéTool completed successfully