I don't understand why
- I saw
import std.core;
here - I can't
import std;
- I can't
import std.iostream;
- I can
#include <iostream>
Can you explain why above is happening? Maybe i guess std.iostream
is not a module. Then why 1.
works?
@Someprogrammerdue provided this reference, and its says
import <iostream>; // import declaration
When I run following in my compiler
import <iostream>;
int main()
{
return 0;
}
I get
main.cpp:1:8: error: 'iostream' was not declared in this scope
1 | import<iostream>;
Why is this happening?