home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Guide
/
c-cplusplus-interactive-guide.iso
/
c_ref
/
csource4
/
291_01
/
jjbshow4.c
< prev
next >
Wrap
Text File
|
1989-06-28
|
13KB
|
248 lines
/**************************************************************************
* *
* JJBSHOW4.C *
* *
* Copyright (c) 1988, 1989, JJB. All rights reserved. *
* *
* The purpose of JJB is to help you to write programs as quickly *
* as possible. JJB handles things for you and provides you with *
* an environment which allows you to concentrate on the functions *
* of your program. *
* *
* This example shows you how to use the following functions: *
* *
* jjb_initalize() initalizes JJB. *
* jjb_setup() sets up the JJB option arrays. *
* jjb_start() begins executing the default option. *
* *
* group(group description) start setting up a group of options & *
* assign a description to the group. *
* *
* option(option description) sets up an option. *
* *
* funct(function name) assigned a function to the option. *
* default_opt() assigns default to an option *
* help(functionname) assigns a function to F1 help. *
* *
* Turbo C is a trademark of Borland International, Inc. *
* Quick C is a trademark of Microsoft Corp. *
* JJB, 9236 church Rd suite 1082, Dallas, Tx 75231 (214) 341-1635 *
**************************************************************************/
/***************************************************************************
* For Turbo C programmers only: *
* To run this program from DOS: *
* *
* Enter 'TC JJBSHOW4' ( to load this file with Turbo C) *
* Press 'CTRL F9' ( to compile and begin executing) *
* *
***************************************************************************/
/***************************************************************************
* for Quick C programmers only: *
* To run this program, from DOS: *
* *
* Enter 'JJBQCS4' ( to load this file with JJB.QLB) *
* Press 'F5' ( to compile and begin executing) *
* *
* To make the .exe file JJBSHOW4.EXE, from DOS enter: *
* QCL /c /AM JJBSHOW4.C *
* LINK JJBSHOW4.OBJ + JJBQC.OBJ + JJBQCINP.OBJ ,,, C:LIB\, *
* *
***************************************************************************/
/***************************************************************************
* *
* for both TURBO C and QUICK C programmers: *
* *
* Not all options have been assigned functions. The options unassigned *
* execute the JJB copyright function. *
* *
* As JJB executes (runs) a program, the following keys can be pressed: *
* *
* ALT X to exit. *
* F1 to display a help screen. *
* F2-F9 to instantly select another option. *
* ALT to select a group of options. *
* ALT and a letter to select a specific group. *
* ESC means nevermind. *
* -> to select the group to the right. *
* <- to select the group to the left. *
* UPARROW to highlight the option above. *
* DOWNARROW to highlight the option below. *
* RETURN to select the option highlighted. *
* A LETTER to select a specific option. *
* ALT and a letter to select a different group. *
* ESC return exactly where you were in the function *
* currently being executed. *
* *
* If another option is selected, JJB will execute: *
* *
* the leave function for the current option. *
* the leave function for the current group. *
* the initalization function for the selected group. *
* the initalization function for the selected option. *
* and option function. *
* *
***************************************************************************/
/* see JJB-READ.DOC for an additional explanation of the functions below. */
#include <jjbkbd.h>
#include <jjbset.h>
main() {
jjb_initalize(); /* initalize JJB arrays and video screen */
jjb_setup(); /* set up the options */
jjb_start(); /* start executing the default option */
}
/****************************************************************************
* *
* sample_function() *
* *
* This is a sample function which is assigned to the options *
* to show you how functions can be executed when you select *
* an option. *
* *
* if you do not assign a function to each option, JJB will initalize *
* *
* each option with a null function which just gets a character. *
* *
****************************************************************************/
/* Below is just a sample of some of the video fast 'vf' functions */
/* you will be able to use in the JJB library, see JJBREAD.ME */
/* 'vfs(string)' video fast a string direct to video memory. */
/* 'vfsdo(string,2,14)' sets up all subseq