Thread: Ich hasse leben

  1. #16
    Registered User
    Join Date
    Aug 2001
    Posts
    207
    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.

  2. #17
    free(me);
    Join Date
    Oct 2001
    Location
    Santo Domingo, DN, Dominican Republic
    Posts
    98

    ...

    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.
    Do you know how contemptous they are of you?

  3. #18
    Registered User
    Join Date
    Aug 2001
    Posts
    207
    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!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Ich bin ein klein teapot kurz und stämmig, ist hier mein Griff, ist hier mein spout.
    By mithrandir in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 01-02-2002, 11:02 AM