title: how does extern "C" allow C++ code in a C file?
body: <p>In order to use C++ code in a C file, I read that we can just do <code>extern "C" { (where the c++ code goes here)}</code>, but when I try printing something out using cout, I keep getting an error because it does not recognize the library . I think I am just confused on how extern "C" allows you to use C++ code in C.  </p>