C++. related to code::blocks ide. the "object is not declared in this scope" error
<p>I am using code::blocks. I used to use turbo C++ 3.0.</p>

<p>I wrote the following code and got an error that is kinda impossible:</p>

<pre><code>#include&lt;iostream&gt;
#include&lt;conio.h&gt;

int main()
{
    using namespace std;

    clrscr();

    char name[20];

    cout&lt;&lt;"\nEnter your name:";

    cin.getline(name,20);

    cout&lt;&lt;"\nName stored";

    clrscr();

    cout&lt;&lt;"\nName:"&lt;&lt;name;

    getch();
    return 0;

}
</code></pre>

<p>it is showing the error that cout,cin and clrscr() are not declared in this scope. I dont understand why this is being shown.</p>

<p>I ran the same code in Turbo C++ 3.0 which was the compiler i used earlier. And i got no such error there. Kindly help rectify this error.</p>

<p>please tell me what is the problem here and why it is not working.</p>
