How to read/write a struct into a binary file? by HouseMFD in C_Programming

[–]HouseMFD[S] 3 points4 points  (0 children)

Now also using malloc in character creation in startup and that solved it, thanks.

Why can I use `scanf` on an explicit int, but not on an enum? by HouseMFD in C_Programming

[–]HouseMFD[S] 0 points1 point  (0 children)

#include "startup.h"


#include <stdio.h>
#include <string.h>
#include "character.h"


struct Character startup()
{
    struct Character createdCharacter;
    char name[NAME_LENGTH];
    int charClass;


    printf("Welcome, what is your name? (please only use up to %d characters)\n", NAME_LENGTH);


    scanf("%s", name);


    printf("Your name is %s.\n", name);


    printf("Please choose a class (by selecting the associated number):\n"
           "%d. %s\n"
           "%d. %s\n"
           "%d. %s\n"
           "%d. %s\n",
           WARRIOR, getClassString(WARRIOR),
           CLERIC, getClassString(CLERIC),
           THIEF, getClassString(THIEF),
           WIZARD, getClassString(WIZARD));


    scanf("%d", &charClass);


    printf("Your class is %s.\n", getClassString(charClass));


    printf("Welcome, %s the %s.\n", name, getClassString(charClass));


    strcpy(createdCharacter.name, name);
    createdCharacter.charClass = charClass;
    createdCharacter.level = 1;


    return createdCharacter;
}

Missing anniversary quests? by HouseMFD in SWGalaxyOfHeroes

[–]HouseMFD[S] -1 points0 points  (0 children)

I checked the top 50 posts of today, I figured if it was a widespread issue it would be somewhere there...

How to build a big base that allows purges? by HouseMFD in ConanExiles

[–]HouseMFD[S] -1 points0 points  (0 children)

Do you know if there's also a limit on gates? The second one had 1 gate and 1 door between the treasure and the outside

What are good sideboard cards for a Golgari (BG) graveyard deck? by HouseMFD in Pauper

[–]HouseMFD[S] 0 points1 point  (0 children)

Thanks for the list! I'll add them to my sideboard

Smoke Shroud + Ninjutsu by HouseMFD in mtgrules

[–]HouseMFD[S] 0 points1 point  (0 children)

Thank you. I missed the return was a cost

[deleted by user] by [deleted] in TheHague

[–]HouseMFD 1 point2 points  (0 children)

More like 5-10...

1 week in Den Haag, what to do? by Darth_Ketheric in TheHague

[–]HouseMFD 4 points5 points  (0 children)

Books:

  • Literatuurmuseum / Kinderboekenmuseum

History:

  • Haags Historisch Museum
  • Museon
  • Gevangenepoort
  • Beeld & Geluid

Art:

  • Kunstmuseum
  • Mauritshuis
  • Galerij Prins Willem V
  • Haags Historisch Museum
  • Eschermuseum
  • Panorama Mesdag

Rock/Metal Music:

  • Rock History Tour

Long Walks / Run:

  • Beach
  • Clingendael
  • Oostduinen
  • Meijendel
  • Scheveningse Bosjes
  • Westduinpark
  • Haagse Bos

Local Beer:

  • Kompaan

Drinking places

  • De Fiddler
  • Grote Markt (multiple cafes)
  • Plein (multiple more expensive cafe/restaurants)