can anyone help me it this
-
i'm a beginner and want to learn but i have problem !! "error c2679 binary '<< ' no operator found which takes a right-hand operand of type " when i used "cin" my code is a simple as i said i'm beginner it's : #include #include using namespace std ; int main () { int age,weight ; float bmi , height ; string name , z ; //for name cout<<"Enter your name "<>name>>endl ; //for age cout<<"Enter your age "<>age>>endl ; //for weight cout<<"Enter Your Weight "<>weight>>endl ; // for height cout<<"Enter your Height In Meters"<>height>>endl ; bmi=weight/(height*height) ; if (bmi<18.5) z= "You Are Underweight" ; else if ((bmi>18.5) && (bmi<24.9)) z= "You Are Normalweight" ; else if ((bmi>24.9) && (bmi<29.9)) z= "You Are Overweight" ; else z= "obesity " ; cout<<"Your BMI "<<"is "<
-
i'm a beginner and want to learn but i have problem !! "error c2679 binary '<< ' no operator found which takes a right-hand operand of type " when i used "cin" my code is a simple as i said i'm beginner it's : #include #include using namespace std ; int main () { int age,weight ; float bmi , height ; string name , z ; //for name cout<<"Enter your name "<>name>>endl ; //for age cout<<"Enter your age "<>age>>endl ; //for weight cout<<"Enter Your Weight "<>weight>>endl ; // for height cout<<"Enter your Height In Meters"<>height>>endl ; bmi=weight/(height*height) ; if (bmi<18.5) z= "You Are Underweight" ; else if ((bmi>18.5) && (bmi<24.9)) z= "You Are Normalweight" ; else if ((bmi>24.9) && (bmi<29.9)) z= "You Are Overweight" ; else z= "obesity " ; cout<<"Your BMI "<<"is "<