T9U5 Miscellaneous Functions
T9U5 Miscellaneous Functions
· assign() -- This function is used to assign a string wholly / partly to another string object .
· beign() -- This member function returns the references of the first character of the string
#include<iostream.h>
#include<conio.h>
void main()
clrscr();
string s2;
char *x;
x=s1.beign();
int x=0;
s2.assign(s1,0,6);
cout<<s2;
cout<<*x;
getch();
OUTPUT
C plus