r/programminghelp • u/[deleted] • Jul 02 '20
C++ What does #include "std_lib_facilities.h" do functionally in the following?
So I decided to start learning c++ using a book by stroustrup, Programming principles and practice using c++, but my hello world starter won't work, the book doesn't seem to explain what the library I am including does functionally. I also don't have said library or know where or what to get that does the same thing for my current application, further, I am using visual studio 2019. I created a new item under my source file and then typed up
#include "std_lib_facilities.h"
int main()
{
cout << "Hello World!\\n";
Return 0;}
This however failed, I presume because I don't have the according library needed to make this function work, so, what is the library doing that would otherwise make this program work, and does anyone perhaps know of a more detailed book I can use? I am not getting very far very fast with this, and have been stuck on hello world for a bit, as it seems there is a lot the book isn't telling me that I need to make this basic program work.
2
u/PancakeFactor Jul 02 '20
Ahh im willing to bet that a helper library he defined himself. A couple of my coworkers were taught by stroustrup and he does do some cooky stuff sometimes. Id say look more in the book and see if he provides it somewhere. Otherwise, just replace that include with :
"#include <iostream>"
without the double quotes and it SHOULD work.