示例#1
0
文件: main.cpp 项目: vladfau/ssu
int main(void)
{
    ifstream in("/Users/masha/Documents/ssu/PrVecList19B/PrVecList19B/input");
    Lottery *l = new Lottery();
    
    
    int x,y;
    cout << "Enter number of ticket for move ";
    cin >> x;
    cout << "Enter number of ticket for show ";
    cin >> y;
    
    int number;
    string symbol;
    while(in >> number >> symbol) l->add(new Ticket(number, symbol));
    l->describe();
    l->move(x);
    l->describe();
    l->show(y);
    
}