Displaying  Source Code(s)  
 

 
To create a class to be used as user defined string type.

--------------------------------------------------------------------------------



# include<iostream.h>
# include<conio.h>
# include<string.h>
# define MAX 50 //Max size of string
class string
{
char s[MAX];
public:
// default constructor
string()
{
// Just the string terminator
s[0]= '
 

 

 

Contribute content or training reports / feedback / Comments
job placement papers
All rights reserved © copyright 123ENG