Interview Question in Visual Studio 2005


 

Interview Question :: Why rand() doesn;t work in visual studio

I am using visual studio 2005 for c++ programming.... I tried to use rand() function to generate a random number in a win32 console application but i recieve an error that says identifier ( rand ) not found!!!
That means that it doesn't even exist.... What is the problem??

I remember also that when i try to copy source codes from a website, some libraries return an error saying that they are not found such as iostream.h.... and functions such as cout (although i don't know what it means yet!!!

Thanks in advance......... :):):):)
by ksk
c++