Maths program for hw help?

closed account (iNU7ko23)
So I'm using this very simple code for hw yet it dosen't seem to work...any ideas why?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <iostream>

int main(void)
{
	std::cout;
	std::cin;
	cout << "Enter the area...";
	int area = 0;
	cin >> area;
	cout << "Enter X...";
	int x = 0;
	cint >> x;
	int answer = area / x;
	cout << answer;
	return 0;
}


and here are the errors...
1>c:\users\user\documents\visual studio 2008\projects\maths 2\maths 2\maths.cpp(14) : error C2065: 'cout' : undeclared identifier

This error is repeated 5 times.
Can someone tell me what I'm doing wrong?
Last edited on
You forgot the using before the first two lines of your main function. :(

-Albatross
closed account (iNU7ko23)
thanks mate! Works now
yeah, I think you may need the using namespace std
Topic archived. No new replies allowed.