Alright, heres the thing, this assignment for school is due in like 3 days, i have spent so much time staring at my code and i dont know whats wrong!! the problem is in the function, i know that for sure, something about mabey using strlan...
This is what i have so far... its almost finished, just a few small changes is all i need, and im sure its a totally obvious problem, but i only started learning C two and a half weeks ago, so were all going to place pity on the beginners, right?? haha...
//this program takes an inputted sentance in english and
//translates it to "pig latin". Taking the first letter of each word
//place it at the end of each word in the sentance, followed
void PrintLatinWord(char *word);
strcpy(delimiters, " ");
printf("Please enter a sentance to be translated:\n");
token = strtok(sentance, delimiters);
while (token != NULL)
token = strtok(NULL, delimiters);
void PrintLatinWord(char *word)
int flag=0, i=0;
//shifts every character one over to the left
//adds the first letter tp the end
oh, and if you see any other errors in the code you can feel free to point them out as well... thanx!