วันจันทร์ที่ 29 มิถุนายน พ.ศ. 2552

Record 23/06/2552

#include<stdio.h>
#include<string.h>
void main()
{
struct televisonLCD
{
char customer[20];
char brand [10];
char colour [10];
char personal[20];
char model[10];
int amount;
int number_televison;
float total;
}tv;
strcpy(tv.customer,"Supphachai");
strcpy(tv.brand,"Sony");
strcpy(tv.colour,"Black");
strcpy(tv.personal,"Patcharapon");
strcpy(tv.model,"LCD");
tv.amount=1;
tv.number_televison=88;
tv.total=49999;
printf(" AOF TV ");
printf("Customer :%s\n",tv.customer);
printf("Brand :%s\n",tv.brand);
printf("Colour :%s\n",tv.colour);
printf("Personal :%s\n",tv.personal);
printf("Model :%s\n",tv.model);
printf("Amount :%d\n",tv.amount);
printf("Number_TV :%d\n",tv.number_televison);
printf("Price :%.2f\n",tv.total);

}

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

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