ok, i just replaced
while( getchar() != '\n' );
with
scanf( "%i%*c", &i );
and it works fine, too...
but my next problem is inside the new_char(); function again :
Code:
[...]
char ch_name[21];
printf("Please enter the characters name:\n");
fgets(ch_name, sizeof(ch_name), stdin);
printf("Ok, %s, choose a profession!\n",ch_name);
[...]
after i entered a name, the program displays :
Ok, Name
, choose a profession!
so i think it reads the "ENTER", too? right?
or is this problem caused by something different?