rv_test.cpp itpp/itbase.h ../bdm/stat/libBM.h ../bdm/math/libDC.h ../bdm/math/chmat.h int int main () main #include<itpp/itbase.h> #include"../bdm/stat/libBM.h" #include"../bdm/math/libDC.h" #include"../bdm/math/chmat.h" usingnamespaceitpp; //Theselinesareneededforuseofcoutandendl usingstd::cout; usingstd::endl; intmain() { RVa=RV("{a}","3"); RVb=RV("{b}","2"); RVc=RV("{c}"); RVef=RV("{ef}"); cout<<"Addaandb"<<endl; RVab=a; ab.add(b); cout<<ab<<endl; cout<<"Concata,bandc"<<endl; RVabc=concat(ab,c); cout<<abc<<endl; cout<<"Structureofa,b,c"<<endl; strs=abc.tostr(); cout<<s.ids<<endl; cout<<s.times<<endl; cout<<"Findainabc"<<endl; cout<<a.findself(abc)<<endl; cout<<"Findabcina"<<endl; cout<<abc.findself(a)<<endl; cout<<"Subtractbfromabc"<<endl; RVac=abc.subt(b); cout<<ac<<endl; cout<<"Dataindexofacinabc"<<endl; cout<<ac.dataind(abc)<<endl; //Exitprogram: //getchar(); return0; }