Re: [Dev-C++] I'm new , help required.
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Daniel K. O. <dan...@ya...> - 2004-08-16 20:00:43
|
Abhijeet S wrote:
> #include <iostream.h>
The standard headers don't have .h.
> class string
> {
> private:
> char *str;
> public:
> void getstr()
> {
> cout<<"Enter the string : ";
std::cout
> cin>>str;
Two errors here.
1) Use std::cin.
2) str is a wild pointer; try alocating some memory first.
Daniel K. O.
|