Thx Duoas but I kinda need a little more help as in the actual line of code that I would need to use
I found the msdn pages myself but don't know how to insert it into my code so gave up looking at them and looked for a forum to ask my question :P.
Not sure if this makes any difference but I use Visual C Express edition and on setup choose console application
I tried these lines
SetConsoleCP(1252);
SetConsoleOutputCP(1252);
but I keep getting "error C3861: 'SetConsoleCP': identifier not found" (in whatever form I tried them so also using "SetConsoleCP( __in 1252);" and other variations)
I am really new to programming and there are probably some things in my program that could be better but it works and it's only for short time usage... (I have read more of your answers and know you really don't like to see the usage of system("pause") hehe) only the accents come out wrong
It's just a small program to use in the family so if it doesn't work on his computer, he can do it on mine that's not a worry
here is part of the code (text to put on screen is in dutch in case you wondered)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
#include <iostream>
#include<string>
using namespace std;
void main()
{
string werkwoord;
cout << "Franse werkwoorden vervoegen" <<endl;
cout << "Geef telkens de gevraagde vorm " <<endl << endl;
cout << "amener participe présent: ";
cin >> werkwoord;
cin.get();
while (werkwoord != "amenant")
{
cout << "Niet juist. Probeer opnieuw: ";
cin >> werkwoord;
cin.get();
}
cout << "Prima" <<endl;
system("pause");
}
|
Do I need to include a headerfile to be able to use these functions?