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

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -