Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. can anyone help me it this

can anyone help me it this

Scheduled Pinned Locked Moved Managed C++/CLI
helplearning
2 Posts 2 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Alaa Radwan
    wrote on last edited by
    #1

    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 "<

    L 1 Reply Last reply
    0
    • A Alaa Radwan

      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 "<

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Part of your error message is missing, and you forgot to show which line produces the error.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups