Obtenez cette erreur en C++, "no match for 'operator>>' dans 'std:cin.std

#include <iostream>

int main()
{
    using std::cout;
    using std::endl;
    using std::cin;
    short width;
    short legnth;
    short height;
    short volume;
    volume = (legnth * width * height);

    cout << "This program will determine the volume of a cube" << endl;
    cout << "Enter the legnth of the cube: ";
    cin >> legnth >> endl;
    cout << "Enter the width of the cube: ";
    cin >> width >> endl;
    cout << "Enter the height of the cube: ";
    cout << "Your volume is: " << volume;
    cout << "Press any key to exit :)";
    cin.get();

    return 0;

Je suis novice en C++ et dans ma base de programmation informatique de la classe, nous avons dû faire quelque chose qui peut calculer le volume, quelqu'un peut-il m'aider à corriger cette erreur?

}

InformationsquelleAutor user3362546 | 2014-02-27