[Solved] Creating a deck of cards by adding a card each time a user inputs a value [closed]


You probably get a compiler error in this (and the next ones) line:

if(int card[] = 0)

int card[] is an array, which is eventually an Object, and you are trying to assign to it a primitive value… which won’t work.
Besides, it looks like you are trying to compare something, which rather uses ==, and not =.

solved Creating a deck of cards by adding a card each time a user inputs a value [closed]