A Practical Solution Three in One C/C++/JAVA