Q:

Write programs that contain the common errors discussed in the box on page 16. Familiarize yourself with the messages the compiler generates

0

Write programs that contain the common errors discussed in the box on page 16. Familiarize yourself with the messages the compiler generates.

// error: missing ) in parameter list for main
int main ( {
// error: used colon, not a semicolon, after endl
std::cout << "Read each file." << std::endl:
// error: missing quotes around string literal
std::cout << Update master. << std::endl;
// error: second output operator is missing
std::cout << "Write new master." std::endl;
// error: missing ; on return statement
return 0
}

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

#include <iostream>
int main( {
  std::cout << "Read each file." << std::endl:
  std::cout << Update master. << std::endl;
  std::cout << "Write new master." std::endl;
  return 0
}

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now