Back To C++ Structures
//program to create a structure movie with members(movieid, moviename,star1,star2 and price) and input values from user and then display the values #include
#include
struct movie { int movieid; char moviename[20]; char star1[20]; char star2[20]; float price; }; void main() { movie m; //variable of structure movie created clrscr(); cout<<"\nenter movieid "; cin>>m.movieid; cout<<"\nenter movie name "; cin>>m.moviename; cout<<"\nenter star 1 of movie "; cin>>m.star1; cout<<"\nenter star 2 of movie "; cin>>m.star2; cout<<"\nenter price of the movie "; cin>>m.price; cout<<"\ndispalying the values \n"; cout<<"\nmovie id is "<