Print Details using C++

Write a Program in C++ to print the details.





class Details





inline void Details :: person(char name[],int
id,int dob,int marks)


 cout<<"Name : ";


 cout<<"ID : "<<id;

 cout<<"Date of birth :

 cout<<"Marks : "<<marks;


int main()


 Details ob;

name[10];int dob,id,marks;

 cout<<"Enter your name: ";


 cout<<"Enter your ID: ";


 cout<<"Enter your Date of Birth:


 cout<<"Enter your marks: ";







Enter your name: Sumit

Enter your ID: 55

Enter your Date of Birth: 14031994

Enter your marks: 65

Name : Sumit

ID: 55

Date of birth: 14031994

Marks: 65


Popular posts from this blog

Write a Program to Add two 3x3 Matrix using C

C program for Unit Conversion

Write a Program to Add two 5x5 Matrix using C