what's wrong with my code?


[ Follow Ups ] [ Post Followup ] [ CS1704 Discussion WWWBoard ] [ FAQ ]

Posted by confused on July 16, 2000 at 21:10:53:

I am getting this error below:
error C2679: binary '<<' : no operator defined which takes a right-hand operand of type 'class std::basic_string,class std::allocator >' (or there is no conversion)

for this code below:
for(int begin = 0; begin<5; begin++)
{
cout << flight[begin].name << flight[begin].number << flight[begin].origin<< flight[begin].hour<<":";
cout << flight[begin].minute << flight[begin].month<<"/"<}
what's wrong with my program?


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS1704 Discussion WWWBoard ] [ FAQ ]