+ 18

How to print spanish/french/etc texts with cout or other method?

Is possible to print non-English texts with regional ascii codes?? For example, "¿Cuántos años tienes?" in Spanish, how could be printed in C++?

13th Dec 2016, 8:23 PM
Jose
9 Respostas
+ 7
I think it is not possible in sololearn
15th Dec 2016, 5:07 PM
javier de la torre
javier de la torre - avatar
+ 3
Use UNICODE instead of ASCII It has other characters for other languages
24th Jan 2017, 2:51 PM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
+ 2
Vladimir Honcharenko : I tried it but does not run
14th Dec 2016, 6:20 PM
A Martin
+ 1
I try but not runs
15th Dec 2016, 5:12 PM
Mila Ramos
0
Muy buena pregunta. En C se puede usar locale() pero en c++ no funciona.
13th Dec 2016, 8:37 PM
Alvaro Pacheco Tolosa
Alvaro Pacheco Tolosa - avatar
0
También a mí me interesa
13th Dec 2016, 8:41 PM
Belen
0
Add to the beginning of main function: setlocale(LC_ALL, ""); Unfortunately, here it will not work. :c You can try it here: http://cpp.sh
14th Dec 2016, 6:51 PM
Vladimir Honcharenko
Vladimir Honcharenko - avatar
0
is it possible?
17th Dec 2016, 3:48 PM
Ciencia
0
of course in a css box or a matrix code just in htlm but the c++ is more difficult but saw tuto
1st Mar 2017, 6:10 AM
Paul Labour
Paul Labour - avatar