#include<iostream.h>
#include<conio.h>
#include<stdio.h>
class name
{
char nam[5];
public:
void input()
{
cout<<"Enter your name ";
gets(nam);
}
void show()
{
cout<<nam;
}
void main()
{
clrscr();
name b1;
b1.input();
b1.show();
getch();
}
}
Error: "deceleration terminated incorrectly"!
Help me
thankx in adv...
#include<conio.h>
#include<stdio.h>
class name
{
char nam[5];
public:
void input()
{
cout<<"Enter your name ";
gets(nam);
}
void show()
{
cout<<nam;
}
void main()
{
clrscr();
name b1;
b1.input();
b1.show();
getch();
}
}
Error: "deceleration terminated incorrectly"!
Help me
thankx in adv...