October 3rd, 2012, 03:35 PM
Ok, so I have researched and researched and have been through my code dozens of times, and I can not seem to figure out why I keep getting:
error C2678: binary '>>' : no operator found which takes a left-hand operand of type 'std::istream'
here's a snippet of my code:
Also note that I have included #include <string> and #include <iostream> in ItemType.h
void ItemType::addListing(ofstream& output) const
cout << "sorry cannot open file!" << endl;
cout << "please enter name of channel: ";
cin >> channel; //This is where I keep getting the error
output << channel << endl;
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!