need help again>>>
hi!
i need c++ codes that will translate a sentence into another language using only arrays and pointers..

all help will be very much appreciated..
thanks..

No one is going to give you the code. You'll have to make some decisions about how you'll populate your arrays, whether you hard code the words into each or read them in from a file, etc. You can just search for the words in the array and output the word with the same index in the foreign dictionary. Anyway, take a crack at it and post back with further questions or, even better, code.

It is not reasonable to translate a sentence into another language one word at a time. Assuming you want this "bad" translation (word by word), you should split the sentence at the spaces and store the words in a std::vector<std::string> and iterate through the vector to do the translation.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.