Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- #include <malloc.h>
- #include "Random.h"
- #include "DandDCharacter.h"
- int main(void)
- {
- struct _Character Character[256];
- //enum _Ancestry Ancestry[0];
- int choice=0;
- printf("Main Menu\n- - - - - - - - -\n");
- printf("\n1) Generate a New Character\n");
- printf("2) Save Current Character\n");
- printf("3) Load a Previously Saved Character\n");
- printf("4) Display Current Character\n");
- printf("5) Exit\n");
- printf("\nEnter a selection: ");
- scanf("%d", &choice);
- while (choice > 5 || choice < 1)
- {
- printf("***Error: Selection must be 1-5**\n");
- // main();
- printf("\nEnter a selection: ");
- scanf("%d", &choice);
- }
- switch(choice)
- {
- case 1:
- break;
- case 2:
- break;
- case 3:
- break;
- case 4: DisplayCharacter(Character);
- break;
- case 5: printf("Thanks for playing!!\n");
- return 0;
- }
- //SetSeed(-1);
- //printf("D6 = %d\n",RollD6());
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement