fork download
  1. #include <stdlib.h>
  2. #include <stdio.h>
  3. #include <iostream>
  4. using namespace std;
  5. #include "CardNode.h"
  6.  
  7. /*Card CardNode::count=0;*/
  8.  
  9. /* This is the constructor that will most often be used.
  10.  */
  11. CardNode::CardNode(Card* c)
  12. {
  13. value = c;
  14. next = NULL;
  15. //count++;
  16. }
  17.  
  18. /* here is another constructor in case someone wants to make the
  19.  * link before they know what value it will have.
  20.  * You can have multiple constructors as long as each has a different
  21.  * set of input parameter types. The names don't matter.
  22.  */
  23. CardNode::CardNode()
  24. {
  25. value = NULL;
  26. next = NULL;
  27. //count++;
  28. }
  29.  
  30. CardNode::~CardNode()
  31. {
  32. //count--;
  33. }
  34.  
  35. /*Card CardNode::getCount()
  36. {
  37. return count;
  38. }*/
  39.  
  40. void CardNode::setValue(Card* c)
  41. {
  42. value = c;
  43. }
  44. void CardNode::setNext(CardNode *l)
  45. {
  46. next = l;
  47. }
  48.  
  49. Card* CardNode::getValue()
  50. {
  51. return value;
  52. }
  53. CardNode* CardNode::getNext()
  54. {
  55. return next;
  56. }
  57.  
  58. void CardNode::printCardNode()
  59. {
  60. Card* c;
  61. c->print_card();
  62. }
  63.  
  64.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:5:22: fatal error: CardNode.h: No such file or directory
 #include "CardNode.h"
                      ^
compilation terminated.
stdout
Standard output is empty