Source of errors.cpp


  1: //errors.cpp
  2: //Illustrates some C++ syntax and output formatting errors.

  4: #include <iostream>

  6: int main()
  7: {
  8:     cout << "This is "
  9:     cout << "still the first "
 10:     cout << "line of output.\n";

 12:     cout << "And this "
 13:          << "is the second "
 14:          << "line of output.\n";

 16:     cout << "First value\n";
 17:          << "is " << 6
 18:     cout << "Second value "
 19:          << "is " << 2.35;

 21:     cout << endl;
 22: }