You have decided that PGP encryptation is not strong enough for your email. You have decided to supplement it by first converting your clear text letter into Pig Latin before encrypting it with PGP.
You are to write a program that will take in an arbitrary number of lines of text and output it in Pig Latin. Each line of text will contain one or more words. A ``word'' is defined as a consecutive sequence of letters (upper and/or lower case). Words should be converted to Pig Latin according to the following rules (non-words should be output exactly as they appear in the input):
This is the input.
hisTay isay hetay inputay.
#include /*面向过程思想的程序设计*/
#include
#include
using namespace std;
int isVowel(char alpa);
int main()
{
string st="";
while(getline(cin,st)){
int j;
for(int i=0;i//不是字符就直接输出
}
cout<
#include /*面向对象思想的程序设计*/
#include
#include
using namespace std;
int isVowel(char alpa);
int main()
{
string st="",buf="";
int i,j;
while(getline(cin,st)){
for(i=0;i
#include /*面向对象思想采用了类和对象的程序设计*/
#include
#include
using namespace std;
class Words{ //单词类
private:
string word;
bool isVowel(const char &alpa);
public:
int Readword(const string &st,int i);
void Printword();
};
int main()
{
string st="";
while(getline(cin,st)){
for(int i=0;i
#include
#include
#include
int isVowel(char alpa); /*return 1 if it is a vowel else return 0*/
int main()
{
char sentence[100000],buf[100000];
int i,j;
while(fgets(sentence,100000,stdin)){
for(i=0;i