|
|
- borland turbo c++ 3.x'in aşmış, yardımcı olmaktan veya kuru bir manuel olmaktan öte insana c dilini öğreten bir yardım modülü vardı. orada ses çıkarmaya yarayan komutlarla ilgili olarak verilen örnekte 7 hertz'in tavuk kafatasının doğal frekansı olduğu bilgisi de verilirdi. anlaşılan avustralya'da bu frekansta ses çıkartan bir fabrika, yakınlardaki bir tavuk çiftliğindeki tüm tavukların kafatasları çatlatayarak ölmelerine sebep olmuş. internetten arayıp buldum bahsi geçen yardım dosyasını. alın bakalım:
----
________________
|sound, nosound|
________________
sound turns the pc speaker on at the specified frequency
nosound turns the pc speaker off
declaration:
void sound(unsigned frequency);
void nosound(void);
remarks:
sound turns on the pc's speaker at a given frequency.
nosound turns the speaker off after it has been turned on by a call to sound.
frequency specifies the frequency of the sound in hertz (cycles per second).
return value: none
portability:
+ dos + unıx + ansı c + c++ only +
| yes | | | |
+-----+------+--------+----------+
see also:
delay
example (for both functions):
/* emits a 7-hz tone for 10 seconds.
true story: 7 hz is the resonant
frequency of a chicken's skull cavity.
this was determined empirically in
australia, where a new factory
generating 7-hz tones was located too
close to a chicken ranch: when the
factory started up, all the chickens
died.
your pc may not be able to emit a 7-hz tone. */
#include
int main(void)
{
sound(7);
delay(10000);
nosound();
return 0;
}
|