วันพฤหัสบดีที่ 2 กรกฎาคม พ.ศ. 2552

DST02-23/06/2009

#include<stdio.h>
#include <string.h>
void main()
{
struct windows {
char os[20];
char cpu[50];
int memory;
int hard_drive;
int direct_x;
char support1[20];
char support2[20];
char support3[50];
};
struct windows vista;
strcpy(vista.os,"Windows Vista");
strcpy(vista.cpu,"1 GHz 32-bit (x86) or 64-bit (x64)processor");
vista.memory=512;
vista.hard_drive=20;
vista.direct_x=9;
strcpy(vista.support1,"DVD-Rom");
strcpy(vista.support2,"Audio Output");
strcpy(vista.support3,"Internet access (fees may apply)");
printf("==Windows Vista recommended system requirements==\n\n");
printf("Os = %s \n\n",vista.os);
printf("CPU : %s \n\n",vista.cpu);
printf("Memory : %d MB of system memory\n\n",vista.memory);
printf("Hard Drive: %d GB hard drive with at least 15 GB of available space\n\n",vista.hard_drive);
printf("DirectX : %d graphics and 32 MB of graphics memory\n\n",vista.direct_x);
printf("Requirements more :\n");
printf("- %s \n",vista.support1);
printf("- %s \n",vista.support2);
printf("- %s \n",vista.support3);
}

ไม่มีความคิดเห็น:

แสดงความคิดเห็น