A typical mistake made by most beginning programming students. What's missing from the following program?
#include <iostream>
int main()
{
std::cout << "Hello";
std::cout << "World\n";
return (0);
}
Hint 1: "Hello World" is two words. Only one word is printed.
Hint 2: The word that's printed is not a real word.
Hint 3: The program prints less than what the programmer wanted.
Hint 4: The program needs a ____________.
Answer: The program prints:
HelloWorld
The problem is that the programmer didn't print a space between the words.