Search:

Type: Posts; User: rllovera

Search: Search took 0.01 seconds.

  1. Replies
    18
    Views
    9,369

    Ok. I see there might not be an easy way to...

    Ok. I see there might not be an easy way to accomplish my goal of outputting more than one beep using printf only. I will try the suggestion you gave but i still don't understand why "\a" does not...
  2. Replies
    18
    Views
    9,369

    Ok, i've tried delays (as i've said) twice, with...

    Ok, i've tried delays (as i've said) twice, with values 100000 and 1000000, and it didn't work. One thing makes me sure of the possibility of outputting more than one beep. In Gentoo Linux (the OS i...
  3. Replies
    18
    Views
    9,369

    But delaying the second beep was not a solution...

    But delaying the second beep was not a solution for me.

    Are you suggesting there's no way to hear the two beeps on my machine? I'm sure there must be something that can be configured in order to...
  4. Replies
    18
    Views
    9,369

    I want to make it work using the \a sequence. I...

    I want to make it work using the \a sequence. I may sound stubborn but i think there'll be a lesson to learn after i solve this matter.
  5. Replies
    18
    Views
    9,369

    This does not work for me. What should i do to...

    This does not work for me. What should i do to configure my machine so it does not discard beeps? How can i find out if it is discarding them?

    Thanks in advance.
  6. Replies
    18
    Views
    9,369

    I've tried a thing like that and it hasn't worked...

    I've tried a thing like that and it hasn't worked for me either. However, i want to know why i'm not getting what i should be getting and learn the steps to make the program do what i want.
  7. Replies
    18
    Views
    9,369

    I hear only one beep. By the way, I'm using...

    I hear only one beep. By the way, I'm using Gentoo Linux and support for pcspkr has been compiled into the kernel. Why does my environment only beep once? How can that behaviour be changed?
  8. Replies
    18
    Views
    9,369

    Outputting many beeps through the pc speaker

    Hi. I'm starting to learn C from the beginning again after a long time. As i wrote the program for the second exercise of the first chapter of Kernighan & Ritchie's book and learned to make my pc...
  9. Ok. Thanks for the tip, dwks. It's so easy not...

    Ok. Thanks for the tip, dwks. It's so easy not giving these kind of things the importance they have because they seem "a ridiculous thing for begginers" that, sometimes, you lose some important...
  10. Replies
    2
    Views
    1,136

    Maybe this link can help you too: ...

    Maybe this link can help you too:

    http://www.eskimo.com/~scs/cclass/

    I'm a beginner and it feels nice to have a tutorial like this. One of the tutorials on this site is meant to be read...
  11. I guess your point is that the first \b allows...

    I guess your point is that the first \b allows the replacement of the second dot by ? while the second \b does not allow the replacement of ? by a newline character. Am i right?

    Thanks.
  12. Ok. But if i write printf("\\b:...

    Ok. But if i write


    printf("\\b: Backspace..\b\n");

    it should print only the first dot after the word "Backspace" since the second dot should be replaced in the output by the newline character...
  13. slash-b doesn't work when followed by slash-n

    Hi. I'm writing the code for Exercise 2 from Chapter 1 of K&R's book. I found this problem when i try to show an example of how \b works. To guide you into my way of thinking i'll post the code i've...
  14. Replies
    8
    Views
    1,565

    I understand what you say. Is there an easy way...

    I understand what you say. Is there an easy way (meaning, an easily understandable method for a beginner) to overcome the line buffered nature of stdin?

    I can add i have tried generating a plain...
  15. Replies
    8
    Views
    1,565

    Actually, i'm programming on linux (gentoo...

    Actually, i'm programming on linux (gentoo linux.) Anyway, i tried what you suggested but it does not work (at least on my machine.) I guess my terminal keeps getting in the way.
  16. Replies
    8
    Views
    1,565

    Thanks to all for your reply. I used getchar() to...

    Thanks to all for your reply. I used getchar() to read a character from standard input (in my case, a console terminal.) I guess that what happens must be what Salem suggested. My terminal might not...
  17. Replies
    8
    Views
    1,565

    intercepting backspaces

    Hi. This is a new thread on an old subject. I do this so i do not bump an old thread anymore.

    Sorry, kermit.

    From seeing the posts before mine this question came into my mind: why would...
  18. Replies
    10
    Views
    4,666

    One other thing

    From seeing the posts before mine this question came into my mind: why would Kernighan & Ritchie put exercise 1-10 at that point of their book if the "\b part" of it would not work? May it be that it...
  19. Replies
    8
    Views
    3,515

    thanks

    Thanks, itsme86. Your last post to this thread clarified the point I had a doubt about.
    That's all. Just wanted to thank you.

    Roberto.
  20. Replies
    8
    Views
    3,515

    I´m beginning to understand

    Hi. First of all, I´d like to thank all of you who replied to my message for your time and effort.

    That said, I go back to business. I assume (from what kermit posted) that all that the function...
  21. Replies
    8
    Views
    3,515

    I'm talking about the first chapter

    Hi. I'm talking about something that's in chapter 1, section 9. I have a spanish copy of the book. In my copy, the code I'm talking about is in page 31.

    Hope this helps.

    I didn't quite...
  22. Replies
    8
    Views
    3,515

    I don't understand K&R example

    Hi, all. I'm writing because there's something I don't understand in K&R's book. In Section 1.9 (character arrays), an example code is given in which the main function calls a function named getline....
Results 1 to 22 of 22