hy friends.today i am going to share program of structure in c++ language .
#include<iostream.h>
using namespace std;
struct student
{
char name[20];
int age;
float fees;
};
main()
{
student s1;
cout<<"enter name please"<<endl;
cin.getline(s1.name,20);
cout<<"entr age"<<endl;
cin>>s1.age;
cout<<"enter fees"<<endl;
cin>>s1.fees;
//displaying data
cout<<"name:"<<s1.name<<endl;
cout<<"age:"<<s1.age<<endl;
cout<<"fees:"<<s1.fees<<endl;
}
i hope you like it thanks

Nice post keep posting
Merry christmas
I always wanted to know java and C ++
java is better than c++ but i start learning c++ but after one month i start learn java & thanks for coming on my post
If you study bits of concepts, a transition from one to the other is not that difficult. I'd suggest looking into some basic C++ first, and then following it up with some study on object oriented programming (OOP) practices. Once you get this much done, you can build on it by using either programming language.
This post has received gratitude of 0.67 % from @appreciator thanks to: @hanitasteemer.