The back story: I am trying to create an account on en.cppreference.com. part of the process involves: What is displayed by std::cout << "ev" << 'a';
The dilemma: I have no idea what the hell that is. I tried putting that into the terminal, but got nothing useful. I tried putting that in code and compiling it ... still no luck. I googled it, but got no closer to understanding what the hell they are asking me to do. and last but not least, I went to http://en.cppreference.com/w/cpp/io/cout
and found the following code, which I also tried to compile without luck.
#include <iostream>
struct Foo {
int n;
Foo() {
std::cout << "static constructor\n";
}
~Foo() {
std::cout << "static destructor\n";
}
};
Foo f; // static object
int main()
{
std::cout << "main function\n";
}
attempts to compile it resulted in:
[bad_cat@KittyLitter LearningCode]$ gcc input.c
input.c:1:20: fatal error: iostream: No such file or directory
#include <iostream>
^
compilation terminated.
All I'm trying to do is get past this, so I can create an account and learn about C programming.