July 29, 2003

Get the Current Directory

The program is used to display the current and parent directory. ‘.’represents the current directory and ‘..’ represents the parent directory import; public class CurrentDir { public static void

Breaking Data Hiding

It is said that C++ provides data hiding, but the following code shows that this is not always true. You can break the C++s data-hiding facility using the memory function:

Get the Maximum Value Across Columns in TSQL

There is no TSQL function for extracting maximum values across columns. However, you can use MAX() and MIN() functions to obtain the maximum or minimum value in any particular row.