// Justin C. Miller
// Date : 1-5-2001
// University of Wisconsin Oshkosh
// Made for: http://www.geocities.com/neonprimetime.geo/index.html
// Borland Builder 4.0
// Title: JustinDOS
// Desciption: very very very simple simulation of MS-DOS prompt

#include 
#include 
#include 
using namespace std ;

void dir() ;
void help() ;
void prompt() ;
void run() ;
void thankyou() ;

int main()
{
	string input ;

	while(input != "exit")
	{
		prompt() ;
		cin >> input ;
		if(input == "help") help() ;
		if(input == "run") run() ;
		if(input == "dir") dir() ;
	}

	thankyou() ;

	return 0 ;
}

void prompt()
{
	system("cls") ;
	cout << "C:\\" ; 
}

void help()
{
	cout << "exit - quit the program" << endl ;
	cout << "help - help menu" << endl ;
	cout << "run  - run your program" << endl ;
	cout << "dir  - display directory contents" << endl ;
	system("pause") ;
}

void thankyou()
{
	cout << "Thank You for Using" << endl ;
	cout << "     JustinDOS" << endl ;
	system("pause") ;
}

void dir() 
{
	cout << "Directory Contents..." << endl ;
	cout << "hello.cpp  122 xxrxx " << endl ;
	cout << "bye.cpp     79 xxxrx " << endl ;
	cout << "NEW_FOLDER" << endl ;
	cout << "test.cpp   232 xrxxx " << endl ;
	system("pause") ;
}

void run() 
{
	cout << "Your program will now run..." << endl ;
	system("pause") ;
	for(int i = 1 ; i <= 10 ; i++) 
	{
		cout << i ;
		if(i < 10) cout << "-" ;
		else cout << endl ;
	}
	system("pause") ;
}

    Source: geocities.com/neonprimetime.geo/cpp/cpp_SourceCode

               ( geocities.com/neonprimetime.geo/cpp)                   ( geocities.com/neonprimetime.geo)