Hi!
I'm totally new to C++ and I'm using Bloodshed Dev-C++, running on Windows 2000.
When typing a cout statement including the scandinavian characters å, ä or ö the output from the program is completely different than stated in the source code, other characters that is.
This is my code:
#include <iostream.h>
#include <stdlib.h>
int main()
{
char quit;
while (quit != 'q')
{
// Börja skriva din main()-kod efter denna rad.
// Skriv ingen main()-kod under denna rad.
cout << "Tryck på 'q' och sedan enter för att avsluta.";
cin >> quit;
}
return 0;
}
This becomes:
Tryck põ 'q' och sedan enter f/r att avsluta.
What shall I do make the cout statement come out correct when running the program? Shall I use #include together with some .h-file to get it to work?
I would really appreciate if someone could help me with this.
/Roger Li, Sweden