Why does getch(); have to get the character before it will output the cout<< before it???

void displayalbum(NODE* &head,apstring &album)
{
NODE *node=head;
int count=0;

cout<<"\n";

for(node;node;node=node->next)
{
if(node->album==album)
{
cout<<node->artist<<endl;
cout<<" "<<node->album<<endl<<" Loaned : "<<node->loaned<<endl;

if(node->loaned=="y")
{
cout<<" To : "<<node->towho<<endl;
}

cout<<"\n";

count++;
}
}

if(count==0)
cout<<"* CD NOT FOUND *\n\n";

cout<<"Press any key to continue.";
getch();

cout<<"\n";

return;

}