error C2065: ‘cout’ : undeclared identifier

26 Şubat 2009 – 09:53

error C2065: ‘cout’ : undeclared identifier eğer c++ uygulamanızda bu hata ile karşılaşıyorsanız

#include <iostream>
using namespace std;

bu iki satrı eklemeniz yeterli olacaktır. Dikkat edilmesi gereken bir hususta

#include “stdafx.h”

satırının atında yer almalı

[C++]

#include “stdafx.h”

#include <iostream>
using namespace std;

Bookmark and Share

Post a Comment

Subscribe without commenting