Sim1 Complete up until Step 5

+- .gitignore
++ Sim01 Files
++ SimTimer stuff
++ SimProgGen
This commit is contained in:
Charles Descamps 2024-01-30 03:07:38 -07:00
parent 08677204ca
commit dc4eca7285
25 changed files with 2059 additions and 0 deletions

View file

@ -0,0 +1,27 @@
// Header file for proggen.c
// Precompiler directive, to eliminate multiple compiles of h file
#ifndef PROGGEN_H
#define PROGGEN_H
// global constants
const int STD_STR_LEN = 45;
const int INPUT_CHANCE = 40;
const int OPTIME_MAX = 10;
const int OPTIME_MIN = 5;
const char NULL_CHAR = '\0';
const char ENDLINE_CHAR[] = "\n";
typedef enum { False, True } Boolean;
// function prototypes
void getNewOp( int percent, char opStr[], Boolean firstOpFlag );
Boolean getOdds( int oddPercent );
int getRandBetween( int low, int high );
int intToString( int value, char valStr[], int index );
#endif // PROGGEN_H