undefined reference to `Card::Card(int,int)
這種提示表示,card:card()沒有定義。有兩種情況,壹種是沒有寫代碼。另壹種是沒有鏈接包含Card::Card函數的庫。
編譯未成功。
妳有兩個主要錯誤:
1 妳的靜態數組沒有實例化就在初始化函數中賦值了。
2 提示undefined reference to `Card::Card(int,int),妳可能將Card::Card 保存在另壹個文件裏了。
直接使用1樓的源代碼就可以了。
上一篇:微信紅包怎麽借錢?下一篇:文明禮儀的由來