Library importing

Hi so I’ve recently started taking the C++ course and a College Java course. In both of them they talk about importing library’s for like imput and outpute (for the C++ it’s #include ) and I’m just wondering where these library’s come from. If I wasn’t on codecademy would I have to build these library’s or what? I’m pretty confused on how they work overall.

When you install a language, C++ or Java, they come with standard libraries. So when you install C++, it comes with a set of base libraries you can pull in and use.

When C++ is installed, a path is defined on the system. The path points to where the standard library packages are. So when you import or include something, the language interpreter looks in the standard library path for the library. If what you are trying to include isn’t there, you get an error.

That is the short version.