Des exemples de code pour programmer en Rust
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

7 lines
230 B

  1. fn main() {
  2. let v =vec ! [8 ; 3] ; // répété trois fois
  3. println ! ("Le premier élément est : {}",v[0]) ;
  4. println ! ("Le deuxième élément est : {}",v[1]) ;
  5. println ! ("Le troisième élément est : {}",v[2]) ;
  6. }