String class
Hi can any one tell me how to pass a string as an argument in a funtion or a method of a class,and its further use in that method or function for certain operation over it... like below
#include<iostream.h>
#include<conio.h>
#include<string.h>
char myname(char m);
int main()
{
char m[40]="vicky one";
myname();
}
char myname(char m)
{ char abc[80];
abc=m||m;
return abc;
}
its is only a sample code(according to my mind), i wish u understand what i want to know for string as an argument and its further use in that method or function. ThanXXX..........