Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- // functions
- void listCards();
- // cards array
- char *Spades[13] = {
- "🂡", "🂢",
- "🂣", "🂤",
- "🂥", "🂦",
- "🂧", "🂨",
- "🂩", "🂪",
- "🂫", "🂭",
- "🂮",
- };
- char *Hearts[13] = {
- "🂱", "🂲",
- "🂳", "🂴",
- "🂵", "🂶",
- "🂷", "🂸",
- "🂹", "🂺",
- "🂻", "🂽",
- "🂾"
- };
- char *Diamonds[13] = {
- "🃁", "🃂",
- "🃃", "🃄",
- "🃅", "🃆",
- "🃇", "🃈",
- "🃉", "🃊",
- "🃋", "🃍",
- "🃎",
- };
- char *Clubs[13] = {
- "🃑", "🃒",
- "🃓", "🃔",
- "🃕", "🃖",
- "🃗", "🃘",
- "🃙", "🃚",
- "🃛", "🃝",
- "🃞",
- };
- int main (int argc, char **argv) {
- if (argc < 2) {
- printf("This program will generate a field of cards.\nusage: TBA\n");
- return 0;
- }
- if (strcmp(argv[1], "list") == 0) {
- listCards();
- }
- return 0;
- }
- void listCards() {
- int x = 0;
- for (x; x < 13; x++) {
- printf("%s", Spades[x]);
- printf("%s", Hearts[x]);
- printf("%s", Diamonds[x]);
- printf("%s\n", Clubs[x]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement