Archived

This topic is now archived and is closed to further replies.

Elite19

colours and beeps in c :)

Recommended Posts

Hi, I have been programming with c for about 3 days now, i have did all the tutorials i have found on the net, basicaly starting with hello world, data types,arrays pointers and the rest. It all makes sense to me, although i''m still a little shaky with pointers, but from what i''ve seen its all just about text and numbers. Does c have colours like changing the background colour or text, and make beeps with different pitches like in turbo pascal? I cant seem to find anything on graphics with c, or is that all for directx to deal with?

Share this post


Link to post
Share on other sites
You''ll have to use an API like DirectX or the Windows API. But if you''ve only been programming in C for 3 days you should stick with text. Also, make your understanding of pointers as solid as possible because you will need it later.


Why you shouldn''t use iostream.h - ever! | A Good free online C++ book

Share this post


Link to post
Share on other sites
Im not sure if this is a C++ function only, but you can always give it a shot:

BOOL Beep(
DWORD dwFreq, // sound frequency, in hertz
DWORD dwDuration // sound duration, in milliseconds
);

Share this post


Link to post
Share on other sites