Fill This Form To Receive Instant Help
Homework answers / question archive / 1
1.- The use of pointers is mandatory.2.- You can only use the iostream, cstring and ctype libraries.
3.- The strings must be declared by character arrangements.
Issue.
Make a C ++ language program that reads a sentence in Spanish and turns it into Latin pig. To convert a word into Latin pig, you take the first letter of the word in Spanish and place it at the end and then add the ending "ae".
In the main function the string FraseEspanol must be read, which is the (complete) phrase that the user enters, then by means of a pointer it sends each word (one at a time) of the phrase in Spanish to the function:
char * LatinPig (char *) which changes the received word to Latin pig and returns the Latin word pig to the main function.
The main function forms the Latin phrase pig into a string called FraseLatinC At the end the main function must write the two sentences.
Output example
The phrase entered is: Hoy es lunes
The Latin phrase pig is: oyHae seae uneslae