#include <iostream>
#include "string"
usingnamespace std;
int main()
{
// Integers here
int Width;
int Length;
int Height;
cout<<"Please enter the value to find the volume in the following order : Width, Lenght and Height.";
cin>> Width;
cin>> Length;
cin>> Height;
while( Width<0 || Length<0 || Height<0 ){// restrictions here
cout<<"The values must be greater than 0. Please re-enter the values."<<endl;
cin>> Width;
cout<< endl;
cin>> Length;
cout<< endl;
cin>> Height;
cout<< endl;
}
cout<< endl;
cout<<"The answer is : "<<"Width * Length * Height"<< endl;
return 0;
}
Comments are a good thing, clover leaf. Go look at the help I offered you in your other thread..
Your compiler will ignore any comments in your code and therefore has no effect on the final executable. However those comments will serve to jog your memory when you return to some code you've written a long time ago and now can't remember what you were doing, as you discovered recently. Also if some poor unfortunate wreck has to maintain your code at some point after you're gone he will thank you for those comments.