title: convert a phrase to numbers in C
body: <p>How can i convert a phrase which the user gives into numbers but not with ASCII table ? For example, I have the phrase HELLO WORLD and i have an array in wich &lt;> is 0, A is 1, B is 2, etc. please Help ! My problem is that i cannot find a way to compare two arrays.
  I have started my code</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;string.h&gt;
  
  char  text[]={'         ','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','.',',',':','?'};
  char number[125];
  
  main(){
      int i,j;
      printf("Enter a message to encode:");
      gets(number);
  }
  </code></pre>
  
  <p>but I have problems continouing it</p>