Find out the error
#include <iostream.h>
class train
{
long trainno;
char name [25];
public :
void entry ( )
{
cin >>trainno;
gets (name);
}
void display ( )
{
cout << trainno << " , " <<name>
}
};
void main ( )
{
train t ;
entry.t ( ) ;
display.t ( ) ;
}
Answers
Answered by
1
Answer:
which class are you made for void display ( ); html or java ?
Similar questions