i could post the whole code, but it prolly wouldn't help, i will put a piece of it up..
Code:
char player_name[30];
void sort_high_scores(void)
{
int i;
int score = snake_size + 1;
int score_rank = -1;
for (i=0;i<=9;i++)
{
if (score >= high_score[i]) {
score_rank = i;
break;
}
}
if (score_rank >= 0)
{
cin >> player_name;
for (i=9;i>score_rank;i--)
{
high_score[i] = high_score[i-1];
strncpy(high_score_name[i],
high_score_name[i-1], 30);
}
high_score[score_rank] = score;
}
return;
}
if tried putting the cin in other parts of my code, but still nothing happens. like i said it does however compile and run. just never prompts the user for there name like it should.