วันอังคารที่ 30 มิถุนายน พ.ศ. 2552

#include
#include
int main(void)
{
struct MyMobilePhone
{
char mobile_phone[10];
char generation[70];
char system[70];
char operatingsystem[70];
char thesystemshakes[70];
int weight;int high;int price;
}
data;
strcpy(data.mobile_phone,"Samsung");
strcpy(data.generation,"F480");
strcpy(data.system,"Quadband GSM 1800/1900 MHz");
strcpy(data.operatingsystem,"Symbian OS version 9.4 - S60 5th edition");
strcpy(data.thesystemshakes,"Vibration in Phone");
data.weight=100.6;
data.high=111;
data.price=10390;
printf("***********************************************************");
printf("**************************SAMSUNG***********************");
printf("***********************************************************");
printf("mobilephone : %s\n generation : %s\n system : %s\n operatingsystem : %s\nthesystemshakes : %s\n weight : %d\n high : %d\n price : %d\n",data.mobile_phone,data.generation,data.system,data.operatingsystem,data.thesystemshakes,data.weight,data.high,data.price); printf("***********************************************************");
}

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

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