|
|
1>------ Build started: Project: Testing, Configuration: Debug Win32 ------ 1> Testing.cpp 1>Testing.cpp(2): warning C4627: '#include <iostream>': skipped when looking for precompiled header use 1> Add directive to 'StdAfx.h' or rebuild precompiled header 1>Testing.cpp(8): error C2039: 'cout' : is not a member of 'std' 1>Testing.cpp(8): error C2065: 'cout' : undeclared identifier 1>Testing.cpp(10): error C2039: 'cin' : is not a member of 'std' 1>Testing.cpp(10): error C2065: 'cin' : undeclared identifier 1>Testing.cpp(15): error C2039: 'cout' : is not a member of 'std' 1>Testing.cpp(15): error C2065: 'cout' : undeclared identifier 1>Testing.cpp(16): error C2039: 'cout' : is not a member of 'std' 1>Testing.cpp(16): error C2065: 'cout' : undeclared identifier 1>Testing.cpp(17): error C2039: 'cout' : is not a member of 'std' 1>Testing.cpp(17): error C2065: 'cout' : undeclared identifier ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== |
#include <iostream>
#include "stdafx.h"
whuich isn't standard c++, rather it is specific to some compilers.#include "stdafx.h"
must come before any other includes.
#include "stdafx.h"
std::string