Microsoft visual c++ 2010 express how to i fix – Error: identifier "cout" is undefined?-Collection of common programming errors
programming-amp-design Retrieving original web address
discoverer: anonymous i have recently started programing using microsoft visual c++ 2010 express and the error “Error: identifier “cout” is undefined” keeps coming up when ever i type cout or cin . also it worked before when i made a simple calculator but it wont work now here is the code : // project1.cpp : Defines the entry point for the console application. // #include “stdafx.h” #include #include using namespace std; int main () { double num1 , num2 , result,; int choose; cout > num1; cout > num2; cout > choose; if (choose == 1) result = num1 + num2; else if (choose == 2) result = num1 – num2; else if (choose == 3) result = num1 / num2; else if (choose ==4) result == num1 * num2; cout
Originally posted 2013-11-09 22:49:08.