if statement help for C...

Discussion in 'Programming/Html' started by dan182, Jan 18, 2007.

  1. dan182

    dan182 Master Guru

    Messages:
    586
    Likes Received:
    0
    GPU:
    ATI Connect 3d X1900 XTX
    ok, im doing a morse code program and i have already got a translator form english to morse, but i need to do english to morse sound, i know how to do the sound etc i just need to know how to get the user in put of a letter, the program to recognise it as a "." or a "-", and if its a "." or an "-"the program to play a two different sounds whether or not it is a "." or a "-".

    i hope people understand :S

    basically i want to get an if statement saying "if in the english to morse function the letter inputted was a . or - play the sound accordingly..."
     
  2. Kevin_Beecher

    Kevin_Beecher Member Guru

    Messages:
    127
    Likes Received:
    0
    GPU:
    XFX 8800GTX
    I think, although im not entirely sure, but there is no different tones, only just the one, which is \a or also written as \7 in C or C++. im sure theres add-ons you can get.

    Are you writing it in Console mode or in a Windowed Application?

    Kev.
     
  3. dan182

    dan182 Master Guru

    Messages:
    586
    Likes Received:
    0
    GPU:
    ATI Connect 3d X1900 XTX
    don worry, i just went the slow and long way out. thanks for caring though lol.
     

Share This Page