#include<iostream>
#include<stack>
using namespace std;

class intro{
      public:
            string s1;
            string s2;
};

class car{
      public :
             string s3;
};

int main(){
    //object

    intro t1;

    t1.s1 = "Anup Tirkey is a SAI , Mechanical Engineer,NIT.";
    t1.s2 = "Anup TIrkey is a Part CIVIL Officer.";
    cout<<t1.s1<<"\n";
    cout<<t1.s2<<"\n";

    //second object

    car c1;

    c1.s3 = "Anup Tirkey is owner of Hyundai Car.";
    cout<<c1.s3<<"\n";


    //stack

    stack<int>stack;

    stack.push(22);
    stack.push(23);
    stack.push(24);
    stack.push(21);


    while(!stack.empty()){

    cout<<stack.top();
    stack.pop();
    }
   //size of stack
    
    cout<<stack.size();
    
    return 0;

}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: