?? cdx.cpp
字號:
/*C4*/
//****************************************************************
// Author: Jethro Wright, III TS : 1/20/1994 18:19
// Date: 01/01/1994
//
// cdx.cpp : main module for the cdx (cd exerciser)
// pgm which demos the audio cd fn of mscdex....
//
// History:
// 01/01/1994 jw3 also sprach zarathrustra....
//****************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
//
// if you want to change the order of these #includes
// then you must change the contents and the other sources
// that depend on them as well....
//
#include "types.h" // some simple utility types
#include "device.h" // device driver related structures
#include "ioctl.hpp" // not used here, but the next does
#include "cdrom.hpp" // is further explanation needed ?
extern unsigned _stklen = 0x2000 ; // this is for bc++ and is
// non-portable....
int main_pgm( int, char ** ) ;
int main( int, char ** ) ;
void usage( void ) ;
void title( void ) ;
//********************************************************
//
// main :-
//
// a simple driver that makes sure the CDRom class
// has been initialized....
//
//********************************************************/
int main( int argc, char ** argv )
{
title() ;
if ( CDRom::InitClass() )
return( main_pgm( argc, argv ) ) ;
printf( "Couldn't initialize using the CDRom::InitClass().\n"
"Probably due to the fact that there are no CDROM drives "
"attached to this system.\n") ;
printf( "痧痧痧痧痧痧痧痧痧痧痧痧痧痧痧痧痧痧痧痧痧痧痧痧痧痧痧痧痧"
"痧痧痧痧痧\n" ) ;
usage() ;
return( 5 ) ;
}
//********************************************************
//
// title :-
//
//********************************************************/
void title( void )
{
printf( "\nCD (Audio) Exerciser V-1.0 痧 Copyright (c) 1994, "
"Jethro Wright, III\n" ) ;
printf( "痧痧痧痧痧痧痧痧痧痧痧痧痧痧痧痧痧痧痧痧痧痧痧痧痧痧痧痧痧"
"痧痧痧痧痧\n" ) ;
return ;
}
//********************************************************
//
// usage :-
//
//********************************************************/
void usage( void )
{
printf( "Exercise MSCDEX's audio CD functions from the DOS "
"command line.\n" ) ;
printf( "痧痧痧痧痧痧痧痧痧痧痧痧痧痧痧痧痧痧痧痧痧痧痧痧痧痧痧痧痧"
"痧痧痧痧痧\n" ) ;
printf( "Usage :-\n" ) ;
printf( " cdx [<trk_nbr>] | [-c] | [-e] | [-l] | [-p] | [-r] "
"| [-s] | [-t<trk_nbr>]\n" ) ;
printf( "If no cmd-line parameter is supplied, CDX displays only the "
"current CD's\n" ) ;
printf( "table of contents. <trk_nbr> is the number of a desired "
"audio track.\n" ) ;
printf( "If supplied alone, audio play begins w/ this track and "
"continues til the end\n" ) ;
printf( "of the disk. Otherwise, use any one of the options listed "
"below:\n" ) ;
printf( " -c continues a CD paused w/ -s
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -