   iostream header
  Hello all,In my code, I use #include<iostream.h>so that I am able to call a "cout" command. My Xcode compiler (see below for specs) says that this is an "deprecated or antiquated" header. It then suggests using <iostream> instead of <iostream.h>. When I call that header, it gives me an error saying that "cout" was not declared. What gives?   
  cout lives in the std namespace.   ;  Use <iostream>.To find cout, you need to let the compiler know that it'll be part of the 'std' namespace.Either explicitly do it with: std::cout << "foo!" << std::endl;Set std as the default namespace for the whole file (insert "using namespace std" at the top of your file, after includes)Set std as the default namespace only for those symbols (at the top of the file, include "using std::count; using std::endl")   ;Quote:Original post by raz0rcout lives in the std namespace.Oh. Forgot about that... well problem solved thank you!EDIT: Thank you both. I didn't see richards post when I posted.   