다른 람과 교 구가 무 다르군... 나만 링드 리로 나...
? : 문 렇게 다.
무 미. 각 고 고...
러 메모 고...
만 더 면 될만 미 부 메모 려 대로 돌 문고...
그래 나 그 바 로 딩는게 나고 !@#!$$@#^%!^$!%
무... 밥나 먹. 랑러 나 밥.
? : 문 렇게 다.
무 미. 각 고 고...
러 메모 고...
만 더 면 될만 미 부 메모 려 대로 돌 문고...
그래 나 그 바 로 딩는게 나고 !@#!$$@#^%!^$!%
무... 밥나 먹. 랑러 나 밥.
~cpp
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
int check(int array[]);
void print_card();
typedef struct _home {
struct _home *next;
struct _home *prev;
int num;
char name[20];
} HOME;
HOME *head;
head = (HOME *)malloc(sizeof(HOME));
main(int argc, char *argv[]){
FILE *fp;
int i, j;
HOME *buf = head;
int array[52]; // 다 배.
int count; // 몇 는가?
char itoa_buf[3];
if(argc != 2)
fprintf(stderr, "Usage: %s input_file", argv[0]), exit(1);
if((fp=fopen(argv[1], "ra") == NULL)
fprintf(stderr, "fopen error(%s)", argv[1]), exit(1);
strcpy(head->name, "2 of Clubs");
for(j=1; j<=4; j++){
for(i=1; i<=13; i++){
if(i==1 && j ==1) continue;
buf->next = (HOME *)malloc(sizeof(HOME));
buf->next->prev = buf;
buf = buf->next;
itoa(itoa_buf, i+1, 10);
// 드 기.
sprintf(buf->name, "%s of %s",
i==10?"Jack":i==11?"Queen":i==12?"King":i==13?"Ace":itoa_buf,
j==1?"Clubs":j==2?"Diamonds":j==3?"Hearts":"Spades");
}
}
// 52개 기. (따로 밖로 내는게 다는 각 든다.)
buf = head;
for(i=0; i<52; i++){
buf.num = array[i];
buf = buf->next;
}
############################################
// (count - 1) (미)
// File array로 바뀐 것 를 는 것 count-1 반복다.
for(i=1; i<count; i++)
{
for(j=0; j<52; j++)
array[j] = ;
check(array);
}
############################################
exit(0); // 료!
}
############################################
// buf array를 교다. (미)
// 달라곳 save 를 고 다 를 달라곳 나면 리를 교다.
// 링만 교 다.
int check(int array[])
{
HOME *buf = head;
HOME *save = head;
}
############################################
// 단 력.
void print_card()
{
int i;
HOME *buf = head;
for(i=0; i<52; i++){
printf("%s\n", buf->name);
buf=buf->next;
}
}










