Back To What is OOP
Struc in C++

#include <iostream>
using namespace std;
//#using <mscorlib.dll>
//cl struct_demo.cpp
struct S_empdb
{
public:
int id;
int age;
float sal;
 
};
void main()
{
S_empdb empinfo ;
empinfo.age = 45;
empinfo.id = 237;
empinfo.sal = 4500;
cout<<"\n Employe ID : " << empinfo.id;
cout<<"\n Employe age : " << empinfo.age;
}