Can't get program to work
Ok, I've been working on that morse code program,and keep getting 2 errors.Any one has any ideas waht wrong.The hradder files work fine
/*Program to convert morse code in to alphanumeric, and vice versa
Autor:A Mac Hugh
Start Date: 31-05-2002
Version:1.0
Errors:- line 26: parse error before [
line30 :confused by earlier errors,bailing out*/
void morse_code (); // Fuction pototype
//void alpha(); // Fuctiuon pototype
char sentance[10];
#include <stdio.h>
#include "ailin.h" // header files
#include "morsecode.h"
void main (){
int a;
int b ;
printf(" Enter in your sentance(max 10 charcters)/n");
scanf("%s",&sentance);
printf(" To cover to Morse code press 1/n/n/tTo covet to Alphanumeric press 2");
scanf("%d",&a);
scanf("%d",&b);
if(a = 1)
sentance[] = alpha() ;// fuction alpha beging used
else if(b = 2)
sentance[] = morse_code () ; // fuction morse_code beging used
}
/*Converts to morse usiing fuctions from head file morsecode.h?*/
void morse_code() {
one ( sentance[]);
two( sentance[]);
three( sentance[]);
four( sentance[]);
five(sentance[]);
six( sentance[]);
seven( sentance[]);
nine( sentance[]);
ten( sentance[]);
}
}
:(