I just need a help in completing this program and i will giveyou two likes even if it is not 100% completed
Here is my code so far
Here is my code so far
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
//———————————————————————–
// Some defines
#define NAME_MAX 64
#define BUFFER_MAX 256
// User instructions
const char *info[] = {
“Enter a command:”,
“”,
” ? – print this list of commands”,
” r – read monster database (binary file)”,
” w – write monster database (binary file)”,
” d – display monsters”,
” n – sort monsters by name (ascending)”,
” h – sort monsters by hitpoints (descending)”,
” q – quit”,
};
const int N_INFO = 9;
//———————————————————————–
// Structs
typedef struct Weapon_struct {
char name[NAME_MAX];
int damageModifier;
}
PayPal Gateway not configured
PayPal Gateway not configured