Explain whether the following program fragment is legal
belongs to book: C++ Primer|Stanley B.Lippman, Josee Lajoie, Barbara E.Moo|5th Edition| Chapter number:1| Question number:1.6
All Answers
total answers (1)
belongs to book: C++ Primer|Stanley B.Lippman, Josee Lajoie, Barbara E.Moo|5th Edition| Chapter number:1| Question number:1.6
total answers (1)
The program is not legal. The operator `
need an explanation for this answer? contact us directly to get an explanation for this answer<<`
is a member of `std::cout
`, thus cannot be called without the object `std::cout
`. Prepend the expression with `std::cout
`.