Before Delphi 2007, sometimes you will have a warning showing up for lengthy functions, even if you have defined return value at the begining of the function, for example: …
Given two rectangles (as shown in the following figure), , are lower-left points while and are top-right points. We want to find out whether these two rectangles overlap each …
The remainder computation on two integers a and b can be normally simply expressed as %, or mod in most of the current modern programming languages. The process of …
September 19, 2012
batch script, beginner, DOS, I/O File, implementation, programming languages, string, tricks, windows, windows command shell
Previously, I have programmed some scripts in Windows Batch, and these can be found in the github. For example, the rot13.bat rotates given input string (command line parameters) to …
September 16, 2012
algorithms, batch script, beginner, code, code library, delphi, encryption, implementation, programming languages, string, tools / utilities, windows, windows command shell, windows scripting host
Rot13 and Rot5 are two ASCII rotation scheme that are made for alphabetic and digits respectively. The Rot13, namely, rotates the letter by 13 places, ‘A’ to ‘N’, ‘B’ …
September 16, 2012
batch script, beginner, github, implementation, programming languages, string, tools / utilities, tricks, windows, windows command shell
If you have something that are not so important but prefer not so easy to read at first except to you. You can simply reverse the text. For example, …