12345678910
void stack::print () { int x; if(!empty()) { for(x = 0; x < top; x++); cout << data[x] << " "; } if(empty()) cout << "Empty!" << endl;