Pig Latin problem

This is a discussion on Pig Latin problem within the C++ Programming forums, part of the General Programming Boards category; I have to write this pig latin program for my class and for some reason it's not working. I'm almost ...

purpose of program

well, if my understanding of pig latin is correct, you take the first letter or combination of letters that make a unique sound off the front of the word, then you say the fragment of the original word and the first letter(s) + "ay". I'd think that program would be quite a bit more complex than you have made it because you will have to deal with special combinations of letters like "sh" or "ch" or "ph". You probably should re-think the way that you parse each individual word out of the file too, because it looks to me like the way you've written it there wouldn't work well at all. The way I would do it is get the size of the file and then read the whole friggin file into a buffer with file.read(), I have found that this method is much more reliable than that stupid getline function. Also, each word(unless it is the first on the line) will pretty much always come after a space, a newline, a tab, or some type of quote. You should probably base your word parser on this. Hope this helps a litle bit.