วันอาทิตย์ที่ 28 มิถุนายน พ.ศ. 2552

DTS 02-23/06/09 (Record)

#include <stdio.h>
#include <string.h>

void main()
{
struct Mobile

{
char name [50];

char customer [10];
char Pizza [50];
char Salads [30];
char Dessert [30];
char Beverage[30];
int Set_number;
float Total;
}
Restaurant;
strcpy(Restaurant.name,"Home of The Pizza");
strcpy(Restaurant.customer,"K.Anna");
strcpy(Restaurant.Pizza,"Hawaiian medium size 299 baht");
strcpy(Restaurant.Salads,"Salmone Salad 149 baht");
strcpy(Restaurant.Dessert,"Fruity Milky 89 baht");
strcpy(Restaurant.Beverage,"Pepsi Max 500 ml.70 baht");
Restaurant.Set_number=2;
Restaurant.Total=617;
printf("==========Home of The Pizza==========\n\n----------Customer Confirm----------\n\n");
printf("Customer :%s\n",Restaurant.customer);
printf("Pizza :%s\n",Restaurant.Pizza);
printf("Salads :%s\n",Restaurant.Salads);
printf("Dessert :%s\n",Restaurant.Dessert);
printf("Beverage:%s\n",Restaurant.Beverage);
printf("Set_number :%d\n",Restaurant.Set_number);
printf("Total :%.2f\n",Restaurant.Total);
}

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

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