Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9001877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:29:43+00:00 2026-06-16T00:29:43+00:00

Error in line 9, 10 and 13 no operator found which takes a left-hand

  • 0

Error in line 9, 10 and 13
“no operator found which takes a left-hand operand of type ‘std:istream’ (or there is no acceptable conversion'”

#include <stdafx.h>  // I should have put #include "stdafx.h" instead
#include <iostream>  // My mistake was I didn't #include <string>

using namespace std;
    int main()
{
    cout << "This is the left step bitwise operation\n";
    string x;
    cin >> x;  // line 9
    cout << "You typed" << x;  //line 10
    string y;
    cout << "Enter second number please!"; 
    cin >> y; // line 13
    cin.get();
    return 0;
} // line 

My vague guess is that I didn’t #include something

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T00:29:43+00:00Added an answer on June 16, 2026 at 12:29 am

    You forgot to #include <string>. Your code relies on that when you input a string, as well as when you declare it, and when you output it.

    #include "stdafx.h"
    #include <iostream>
    #include <string> <------
    

    I can’t take too much credit for this, so it’s a community wiki.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This error: error C2678: binary '=' : no operator found which takes a left-hand
Does the @error line even make sense here? Would it even be hit in
When trying to validate my site, I get the following error: Line 188, column
I get an error on line 14 of the below: using System; using System.Collections.Generic;
I got an Error at line myconn.Open(); How to solve it. {A network-related or
I have error in line 2 and 13 in PHP 5.2, I have no
i'm having an error showing : line 1:5 mismatched input '<EOF>' expecting NEWLINE for
I am keep getting NullPointerException error at line JSONObject json = userFunctions.uploadFileData(guid, photoName); in
The offending line str.replace(/ /g, ) gives Error: In orders.js.erb.coffee, Parse error on line
I have a small script and it throws Unexpected token error on line 2

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.