c++ - Error using std::cout in visual cpp console application -
i using visual studio 2013 build c++ console application.this code gives error. need write console every function in application.
// rat.cpp : defines entry point console application. // #include "stdafx.h" int _tmain(int argc, _tchar* argv[]) { std::cout << "process started"; return 0; }
it gives following error,
error:namespace "std" has no member "cout"
i dont understand why basic "cout" gives such error :( please me totally confused....
you need place #include <iostream>
header.
Comments
Post a Comment