
-----------------------------------
tnkanubite
Sat Jan 21, 2012 8:55 am

how to translate from morse code to text. please help
-----------------------------------
I should start of with say im sorry for bad spelling and code.
And also that im not sure if im posting in the correct place.
I have been struggling about 2weeks with this now and cant figure out how to do it, so needless to say im starting to feel stupid. A few weeks of studing programming and i should be able to solve this by my self i thought. 
So any help would be great.
This is how it looks at the moment

[code]
#include 
#include 
#include 
#include 
#include 
#include 
using namespace std;






int main ()
{
  
  char morse[29] [7]={".-", "-...", "-.-.", "-..", ".", "..-.", "--.", "....", "..", ".---", "-.-", ".-..", "--", "-.", "---", ".--.","--.-", ".-.", "...", "-", "..-", "...-", ".--", "-..-", "-.--", "--..", ".--.-" , ".-.-", "---."};
  char text [29] [3]={ "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "\x86", "\x84", "\x94"};
  int j, k;
  int borja=0, sok, count=0;
  unsigned int i;
  
  while (1)
  {
    
    int find_string = 0;
    int stop_string = 29;
    cout 