fork download
  1. #include <iostream>
  2. #include <cstdio>
  3. #include <cstdlib>
  4. using namespace std;
  5. #include "CardLinkedList.h"
  6.  
  7.  
  8. int main(int argc, char *argv[])
  9. {
  10.  
  11. CardLinkedList hand;
  12. int i;
  13. // make some cards and put them in the hand
  14. // this is by no means a full set of test cases!!!
  15.  
  16. for(i=0;i<10;i++)
  17. hand.addHead(new Card(0,i));
  18.  
  19. for(i=0;i<10;i++)
  20. hand.addTail(new Card(1,i));
  21.  
  22. hand.printList();
  23.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:5:28: fatal error: CardLinkedList.h: No such file or directory
 #include "CardLinkedList.h"
                            ^
compilation terminated.
stdout
Standard output is empty