the problem you have is that as soon as you pass num = 1 to that function num is never changed again and so you get stuck in an infinite loop. Instead of using while loops use a switch statement like so:
1 2 3 4 5 6 7
void SpanishNum(int num)
switch(num)
{
case 1:
cout << num << "uno" << endl;
break;
} //etc...