IT창고/C
-
가위 바위 보 게임..IT창고/C 2008. 2. 18. 10:21
#include #include #include void main(){ int QNum,ANum; srand((unsigned) time (NULL) ); printf("가위 바위 보 Game입니다\n"); printf("해당숫자 이외의 숫자 입력시 종료합니다\n"); do{ QNum = rand() % 2 +1; printf("1.가위 2.바위 3.보\n"); printf("선택 하세요 : "); scanf("%d",&ANum); if(ANum >= 1 && ANum
-
카드 관리..(??)IT창고/C 2008. 2. 18. 10:20
#include #include #include #define MAX 100 int menu(void); void author_search(void); void title_search(void); void enter(void); void save(void); void load(void); void display(int i); struct book_type{ unsigned date; unsigned char ed; unsigned pages; }; struct catalog{ char name[80]; char title[80]; char pub[80]; struct book_type book; } cat[MAX]; int top = 0; int main(int argc, char*argv[]) { in..