REZOLVARI INFORMATICA 2009 ALTE MODELE EXCELENTE DE REZOLVARE LA www.subiecte.

info Subiectul II Varianta 79
Nr. Item 1 2 3 a. 3 (4069254326462 ) Gradul interior al varfului 6 este 3, deoarece exista urmatoarele arce : (1,6),(2,6),(3,6). Raspuns / Rezolvare

Explicatii

4

4

5

#include<iostream.h> #include<string.h> void main() { char sir[100],voc[]="aeiouAEIOU",*p,*q, x[]="*"; int i; cin.get(sir,100); for(i=0;i<strlen(voc);i++) { p=sir; while(p) {p= strchr(p,voc[i]); strcpy(q,p+1); strcpy(p+1,x); strcat(p+2,q); if (p) {ok=1;p=p+1;} } } if(ok==0)cout<<”FARA VOCALE”; else cout<<sir; }

REZOLVARI INFORMATICA 2009 ALTE MODELE EXCELENTE DE REZOLVARE LA www.subiecte.info

Sign up to vote on this title
UsefulNot useful

Master Your Semester with Scribd & The New York Times

Special offer for students: Only $4.99/month.

Master Your Semester with a Special Offer from Scribd & The New York Times

Cancel anytime.