#ifndef __Vecteur_H__
#define __Vecteur_H__

#include <iostream>
#include <assert.h>

using namespace std;


class Vecteur
{
public :
    Vecteur (int value, int capacite = 100);
    Vecteur (const Vecteur & x);
    ~ Vecteur ();

    int getCapacite () const
    {
        return _capacite;
    }

    Vecteur & operator= (const Vecteur & x);

    int operator[] (int rang) const ; // R_Value
    int & operator[] (int rang); // L_Value

    friend ostream & operator << (ostream & os, const Vecteur & x);
    friend istream & operator >> (istream & is, Vecteur & x);

    friend double produit_scalaire (const Vecteur& x, const Vecteur& y);

private :
    const int _capacite;
    int * t;
};

#endif
