thank 4 your feedback....
act this is my coding to translate a syntax but i don't know how to translate multiple words ....for example if I translate a syntax "saya" it will produce an english syntax "I"..but how if I want to translate " saya suka" mean " I like".....
anybody know????
Code:
#include <iostream>
#include <cstdio>
using namespace std;
int main() {
int i;
char str[80];
char numbers[10][80]= {
"saya", "i",
"suka", "like",
"makan", "eat",
"nasi", "rice",
"ayam", "chicken" };
cout<<"Enter Malay word to translate: \n";
cout<<"============================== \n\n";
cout<<"\t";
cin>>str;
cout<<"\n\n";
for (i=0; i<10; i+=2)
if(!strcmp(str, numbers[i]))
{
cout<< "English word is : \n"<<"================================\n\n\n"<<"\t"<<numbers[i+1]<<"\n\n\n\n\n\n\n\n";
break;
}
if(i==10) cout<< "Not found\n\n\n\n\n\n\n\n";
return 0;
}