aki wrote:
#include<iostream>
using namespace std;
class string
{
char *str;
public:
string(char *st)
{
str=st;
};
~string();
void reversestr(char *str);
//void showstr();
};
int main ()
{
string s("akhilesh");
Aside from (a) a missing closing curly brace at the end of 'main' and
(b) the fact that the name of your class is the same as the standard
class 'string', what exactly is the problem?
Also, consider asking your question in the text of the posting instead
of the subject line.
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask