I have some old program source code that I wrote for Turbo C compiler.I made changes to them and want to recompile them in newer compilers for Linux and Windows.So please te
On Unix-like systems you can use VT100 escape codes for replacing clrscr() and gotoxy(). clrscr():
std::cout << "\033[2J" << std::flush;
See http://www.termsys.demon.co.uk/vtansi.htm for gotoxy() and more.
For Windows systems:
Best is to compile the program as a console application for windows.
You can directly use the Windows API for console windows and console output. Take a look at the MSDN: Windows Console functions
Here are possible replacements for the given functions:
Take a look at the ncurses library, for Unix compatible systems.