Mohan S N wrote: >> Hardik Patel <[EMAIL PROTECTED]> wrote: #include >> >> int main() >> { >> char bdate[1]; >> cin >> bdate; >> cout << bdate; >> } >> >> ---------------------------------- >> wht's wrong in this?? >> >> this gives me an error : >> >> Untitled1.cpp: In function `int main()': >> Untitled1.cpp:6: error: `cin' undeclared (first use this function) >> Untitled1.cpp:6: error: (Each undeclared identifier is reported only once >> for each function it appears in.) >> Untitled1.cpp:7: error: `cout' undeclared (first use this function) >> > > Hi Hardik, > I got the same errors. > The below patch will fix it. > > Regards, > Mohan S N > > --- ios.c.org 2007-08-05 21:44:54.000000000 +0530 > +++ ios.c 2007-08-05 21:46:48.000000000 +0530 > @@ -1,4 +1,5 @@ > #include <iostream> > +using namespace std; > > int main() > {
<jaw drops off face> %O A patch for such a simple program? The OP probably has no idea what a patch is in the first place. Dev-C++ is usually used on Windows... -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/