Orar semigroup #2

Orar semigroup #2

Tema

#include<iostream>
using namespace std;
int main()
{int n,i,r=0;
char a[100],*p;
cin.get(a,100);
n=strlen(a);
cout<<"Vocalele din sir"<<endl;
for(p=a;*p;p++)
    if(strchr("aAeEiIoOuU",*p))
        {cout<<*p<<";";r++;}
cout<<endl;
cout<<r<<" vocale in sir"<<endl;
cout<<"Perechile de vocale"<<endl;
for(p=a;*p;p++)
    if(strchr("aAeEiIoOuU",*p) && strchr("aeiouAEIOU",*(p+1)) && *(p+1)!=NULL)
        cout<<*p<<";"<<*(p+1)<<endl;
cout<<endl;
}

joi, 28 octombrie 2010 by DlMuresan
2 comments

Comments (2)

  1. #include
    #include
    using namespace std;
    int main()
    {
    ifstream g("date.in");
    int f[26]={0},nr=50,i,max,j,p;
    char c;
    while(g>>c) {f[tolower(c)-'a']++; }

    Sitire ghin sisier la sir die coroctere.

  2. cine dumnezo l-o postat?

Leave a Reply