#include #include "url.h" int main(int argc, char** argv) { using namespace std; if (argc < 2) { cerr << "missing arg on cmd line" << endl; return 1; } URL url(argv[1]); url.download(); string theLink = url.getNextLink(); while(theLink.size() > 0) { cout << theLink << endl; theLink = url.getNextLink(); } return 0; }