You are on page 1of 3

66: ideale

108: CLASA A-XII-A A


113: b*c*l**r**t
118: bac
140: roton
150: acat
172: varianta 2
200: jogp
337: tarta
-----doar la 113 nu mi a dat corect-----
4184 – 100pct
void FNume(char s[], char id[])
{
for(int i=0;i<strlen(s);i++)
if(s[i]==' ')
strcpy(s,s+i+1);
strcpy(id,s);
strcat(id,"2022");
cout<<id;
}
972 – primesc ff multe erori de compilare si nu stiu de ce
#include <iostream>
#include <cstring>
using namespace std;
char s[255]:
int i,a,k=0;
int main()
{
cin.get(s,255);
a=strlen(s);
for(i=1;i<a-1;i++)
{
if((strchr(”aeiou”,s[i])!=0)
if((strchr(”aeiou”,s[i-1])==0&&(strchr(”aeiou”,s[i+1])==0)
{
k++;
i++;
}
}
cout<<k;
return 0;
}
11 – aceeasi problema ca mai sus, cred ca este o problema cu felul in care declar libraria cstring, dar nu
stiu ce am gresit exact
#include <iostream>
#include <cstring>
using namespace std;
char s[255],k:
int i,a;
int main()
{
cin.get(s,255);
a=strlen(s);
k='a'-'A';
for(i=0;i<a;i++)
{
if((strchr(”aeiou”,s[i])!=0)
{
s[i]+=k;
}
}
cout<<s;
return 0;
}
1866
#include <iostream>
#include <cstring>
#include <fstream>
using namespace std;
ifstream fin("prosir.in");
ofstream fout("prosir.out");
char s[200];
int i,a;
int main()
{
fin.get(s,200);
a=strlen(s);
for(i=0;i<a;i++)
{
if(s[i]!=' '&&(s[i+1]==' '&&s[i+1]=='.'))
{
s[i]=='5';
}
}
fout<<s;
return 0;
}
1456
#include <iostream>
#include <cstring>
using namespace std;
char s[255],k;
int i,a,ok=1,ok1=0;
int main()
{
cin.get(s,255);
a=strlen(s);
for(i=0;i<a;i++)
{
if(strchr(”qwrtypsdfghjklzxcvbnm”,s[i])!=0&&ok1==0)
ok1=1;
if(strchr(”aeou”,s[i])!=0)
ok=0;
}
if(ok==1&&ok1==1)
cout<<"DA";
else
cout<<"NU";
return 0;
}
2828:
#include <iostream>
#include <cstring>
using namespace std;
char s[100];
int i = 1;
int main()
{
cin.get(s,1001);
if(s[0]>= 'A' && s[0]<='Z')
cout << s[0];
while(s[i]!='\0')
{
if(s[i-1]==' ' && s[i]>= 'A' && s[i]<='Z')
cout << s[i];
i++;
}
return 0;
}
97: ?

You might also like