Computer Science, asked by vabhavi62, 7 months ago

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 hetpanara334
1

Answer:

which class are you made for void display ( ); html or java ?

Similar questions