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...
Type: Posts; User: rllovera
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...
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...
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...
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.
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.
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.
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?
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...
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...
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...
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.
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...
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...
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...
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.
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...
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...
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...
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.
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...
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...
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....