-
Biter, as you speak Spanish you might know about this one:
I'm using Borland Turbo C++ 3.0, and when I want the program to do something like:
printf("El camión está rodando");
The program will print something like this:
El cami*n est* rodando
In search of * I will have a random ASCII character. Do you know how to set the program or whatever so that I can use the language properly?
P.D.: I've been able to defragment my hard drive already.
-
...
Well it occurs to me that you could enum or define all the vowels that have a tilde (á, é, í, ó, ú), and then just pass the constants as parameters to printf().
I'm not sure this would work though, i'm just guessing. And you'd be hard coding the ASCII values for those characters, so it would only work in ASCII.
i mean something like this:
#define E_TILDE 130
enum { A_TILDE = 160, I_TILDE, O_TILDE, U_TILDE }
...
printf("El cami%cn est%c rodando.", O_TILDE, A_TILDE);
I hope this helps.
adios,
biterman.
-
Gracias Biter,
it's a good idea, I think, but as my code has so many lines to print on the screen, it'd be too much. I'll just do it in English or without the tildes.
Thanks for being so fast! ;)