Hi,
I just found out that my program actually does beep. But the sound is very very fade. I have to put my ear next to the speaker so I can hear it. But any other sounds (ie when I turn on the pc or from any web site that has sound), the sound is lound as normal. What's the problem?
Thanks.
Hi,
Is '\a' suppose to make a beep sound? It's doesn't beep in my program. I use dev-c++ on window.
Thank for any help.
#include <iostream>
#include <stdlib.h>
int main()
{
int num;
puts("enter 2 will beep");
scanf("%d", &num);
printf("beeping the computer\a\a\a\n")...
Thank you, it works now.
(I wonder why the tutorial books, some one gave to me and
another book from IBM, don't have fflush statement in
their samples.)
Thank you everyone for your help.
Hi,
I don't know if I have line-buffered stdout or not but I tried what you suggested anyway. It produced the same result. Here's where I inserted.
int main(void)
{
int month;
setvbuf(stdout,0,_IONBF,0);
printf("enter month: ");
...
...
Hi,
I'm trying to learn C and coding it on AS400. Here is my
program.
#include <stdio.h>
int main(void)
{
int month;
printf("enter month: ");
scanf("%d", &month);
return 0...
Hi,
I'm want to center my picture inside the <fieldset>, how do I modify my codes here?
<fieldset style="width:300;height:400; border: solid
3px red" align="center">
<legend align="center">
My Picture
</legend>
<img src="love.gif" width="120" height="120">
</fieldset>
Thanks...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.