// Code derived from Stroustrup's PPP2 book// § 6.3.3 Implementing tokens// -and beginning on p 184#include<iostream>usingstd::cout;// a simple user-defined typeclassToken{public:Token(charch):kind{ch}{}Token(charch,doubleval):kind{ch},value{val}{}charkind='0';doublevalue=0.0;};intmain(){// initialize t1 so that t1.kind = '+'Tokent1{'+'};// initialize t2 so that t2.kind = '8' and t2.value = 11.5Tokent2{'8',11.5};cout<<t1.kind<<'\n'//<<t1.value<<'\n'//<<t2.kind<<'\n'//<<t2.value<<'\n';}