code_junkie

GCC - “expected unqualified-id before ')' token”

Nov 11th, 2011
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. cards.h:21: error: expected unqualified-id before ')' token
  2. cards.h:22: error: expected `)' before "str"
  3. cards.h:23: error: expected `)' before "r"
  4.  
  5. /*
  6. Card header file
  7. [Author]
  8. */
  9. // NOTE: Lanugage Docs here http://www.cplusplus.com/doc/tutorial/
  10.  
  11. #define Card
  12. #define Hand
  13. #define AppError
  14.  
  15. #include <string>
  16.  
  17. using namespace std;
  18.  
  19.  
  20. // TODO: Docs here
  21. class Card { // line 17
  22. public:
  23. enum Suit {Club, Diamond, Spade, Heart};
  24. enum Rank {Two, Three, Four, Five, Six, Seven, Eight, Nine,
  25. Ten, Jack, Queen, King, Ace};
  26. Card(); // line 22
  27. Card(string str);
  28. Card(Rank r, Suit s);
  29.  
  30. #ifndef CARD_H
  31. #define CARD_H
  32.  
  33. class Card ...
  34. ...
  35.  
  36. #endif
  37.  
  38. #define Card
  39. #define Hand
  40. #define AppError
  41.  
  42. class Card ;
  43. class Hand ;
  44. class AppError ;
Add Comment
Please, Sign In to add comment