citirea si afisarea vectorilor

Page 1

1. Citirea tablourilor unidimensionale: … int v[100], n, i ; cout << ”n=” ; cin >> n ; for ( i=0 ; i<n ; i++) { cout << ”v[” << i << “]=” ; cin >> v[i] ; } …

2. Afișarea tablourilor unidimensionale:

… cout << “v = { ” << v[0] ; for ( i=1 ; i<n ; i++) cout << “, ” << v[i] ; cout << “ }” ;


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.