Rezolvari Informatica Bac 2009 -www.subiecte.info

  • April 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Rezolvari Informatica Bac 2009 -www.subiecte.info as PDF for free.

More details

  • Words: 83
  • Pages: 2
REZOLVARI INFORMATICA 2009 ALTE MODELE EXCELENTE DE REZOLVARE LA www.subiecte.info Subiectul II Varianta 79 Nr. Item

Raspuns / Rezolvare

Explicatii

1

a.

2

3

3

(4069254326462 )

4

4

5

#include #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; }

Gradul interior al varfului 6 este 3, deoarece exista urmatoarele arce : (1,6),(2,6),(3,6).

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

Related Documents