#include<iostream>
#include<fstream>
#include<string>
#include"DoubleStack.h"
using namespace std;
int main(){
DoubleStack<string> q;
q.pushRed("Russia"); q.pushRed("Stop"); q.pushRed("Blood");
q.pushBlue("Moon"); q.pushBlue("Blood"); q.pushBlue("Sky");
cout << q << endl;
for (int count =0; count <1; count++){ DoubleStack<string> p(10);
ifstream ifs("//Engr_asu/ECE352/words");
string s;
int i;
for (i=0;i <10000; ++i){
ifs >> s;
p.pushRed(s);
};
for (i=0;i<20000;++i){
ifs >> s;
p.pushBlue(s);
};
cout << "Blue: ";
for (i=0; i< 10; ++i){
string w = p.topBlue();
cout << w << " ";
p.popBlue();
}
cout << endl << "Red: ";
for (i=0; i< 10; ++i){
string w = p.topRed();
cout << w << " ";
p.popRed();
}
cout << endl;
}
return 0;
}