Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- int main(void)
- {
- struct galaxy {
- char info[30];
- char name[100];
- char manufact[50];
- char cpu[100];
- int memory;
- float inch;
- char graphic[100];
- char resolurion[50];
- char network[200];
- char os[50];
- int camera_pixel;
- char size[100];
- int weight;
- char color[300];
- int bettery;
- int price;
- int storage;
- char feat[300];
- char release[100];
- char madein[50];
- char imei[30];
- char kernel[200];
- char touch_type[100];
- char form[50];
- char rendere[100];
- char baseband[200];
- char buildcode[200];
- };
- int i;
- struct galaxy s5[5];
- //01 - Samsung Galaxy S5
- strcpy(s5[0].info, "Samsung Galaxy S5 Infomation");
- strcpy(s5[0].name, "SM-G900");
- strcpy(s5[0].manufact, "Samsung Electronics.Inc");
- strcpy(s5[0].cpu, "Qualcomm Snapdragon 805 APQ8084 SoC.");
- s5[0].memory = 3;
- s5[0].inch = 5.1;
- strcpy(s5[0].graphic, "FHD Super AMOLED");
- strcpy(s5[0].resolurion, "1920x1080");
- strcpy(s5[0].network, "LTE-2CA Cat.4 / 802.11/a/b/g/n/ac / Bluetooth 4.0");
- strcpy(s5[0].os, "Android 4.4.2 Kitkat");
- s5[0].camera_pixel = 16000000;
- strcpy(s5[0].size, "72.5x142x8.1mm");
- strcpy(s5[0].color, "Black, White, Blue, Gold, Pink");
- s5[0].bettery = 2800;
- s5[0].price = 866800;
- s5[0].storage = 32;
- strcpy(s5[0].feat, "Finger Print, Heartrate Sensor");
- strcpy(s5[0].release, "04/29/2014");
- strcpy(s5[0].madein, "Gumi, Korea");
- strcpy(s5[0].imei, "351932060619086");
- strcpy(s5[0].kernel, "Linux 3.4.0-2541437");
- strcpy(s5[0].touch_type, "Capacitive touch");
- strcpy(s5[0].form, "Bar");
- strcpy(s5[0].rendere, "Adreno(TM) 330");
- strcpy(s5[0].baseband, "G900SKSU1ANH");
- strcpy(s5[0].buildcode, "KOT.49H.G900");
- // 02 - Samsung Galaxy Tab S 10.5
- strcpy(s5[1].info, "Samsung Galaxy Tab S 10.5 Infomation");
- strcpy(s5[1].name, "SM-T800");
- strcpy(s5[1].manufact, "Samsung Electronics.Inc");
- strcpy(s5[1].cpu, "Samsung Exynos 5420 SoC");
- s5[1].memory = 3;
- s5[1].inch = 10.5;
- strcpy(s5[1].graphic, "QHD Super AMOLED");
- strcpy(s5[1].resolurion, "WQXGA 2560 x 1600");
- strcpy(s5[1].network, "Wi-Fi 802.11a/b/g/n/ac / Bluetooth 4.0 / NFC / ANT+");
- strcpy(s5[1].os, "Android 4.4.2 Kitkat");
- s5[1].camera_pixel = 8000000;
- strcpy(s5[1].size, "177.3 x 247.3 x 6.6 mm");
- strcpy(s5[1].color, "Titanium Bronze, Dazzling White");
- s5[1].bettery = 7900;
- s5[1].price = 721000;
- s5[1].storage = 32;
- strcpy(s5[1].feat, "Finger Print");
- strcpy(s5[1].release, "06/20/2014");
- strcpy(s5[1].madein, "Gumi, Korea");
- strcpy(s5[1].imei, "None");
- strcpy(s5[1].kernel, "Linux 3.4.39-2088613");
- strcpy(s5[1].touch_type, "Capacitive touch");
- strcpy(s5[1].form, "Tablet");
- strcpy(s5[1].rendere, "Mali-T628");
- strcpy(s5[1].baseband, "null");
- strcpy(s5[1].buildcode, "KOT49H.G800KXU1ANG1");
- // 03 - Samsung Galaxy Note Edge
- strcpy(s5[2].info, "Samsung Galaxy Note Edge Infomation");
- strcpy(s5[2].name, "SM-N915");
- strcpy(s5[2].manufact, "Samsung Electronics.Inc");
- strcpy(s5[2].cpu, "Qualcomm Snapdragon 805 APQ8084 SoC");
- s5[2].memory = 3;
- s5[2].inch = 5.6;
- strcpy(s5[2].graphic, "Flexible QHD Super AMOLED");
- strcpy(s5[2].resolurion, "WQHD 2560 x 1440+160");
- strcpy(s5[2].network, "LTE Cat.6 / Wi-Fi 802.11a/b/g/n/ac / Bluetooth 4.1+BLE / NFC / ANT+");
- strcpy(s5[2].os, "Android 4.4.4 Kitkat");
- s5[2].camera_pixel = 16000000;
- strcpy(s5[2].size, "82.4 x 151.3 x 8.3 mm, 174 g");
- strcpy(s5[2].color, "Charcoal Black, Frost White");
- s5[2].bettery = 3000;
- s5[2].price = 1080000;
- s5[2].storage = 32;
- strcpy(s5[2].feat, "Finger Print, Flexible Edge Screen");
- strcpy(s5[2].release, "10/2014");
- strcpy(s5[2].madein, "Gumi, Korea");
- strcpy(s5[2].imei, "None");
- strcpy(s5[2].kernel, "null");
- strcpy(s5[2].touch_type, "Capacitive touch");
- strcpy(s5[2].form, "Bar");
- strcpy(s5[2].rendere, "null");
- strcpy(s5[2].baseband, "null");
- strcpy(s5[2].buildcode, "null");
- // 04 - Samsung Galaxy Note 4
- strcpy(s5[3].info, "Samsung Galaxy Note 4 Infomation");
- strcpy(s5[3].name, "SM-N910");
- strcpy(s5[3].manufact, "Samsung Electronics.Inc");
- strcpy(s5[3].cpu, "Qualcomm Snapdragon 805 APQ8084 SoC.");
- s5[3].memory = 3;
- s5[3].inch = 5.7;
- strcpy(s5[3].graphic, "WQHD Super AMOLED");
- strcpy(s5[3].resolurion, "WQHD 2560 x 1440");
- strcpy(s5[3].network, "LTE Cat.6 / Wi-Fi 802.11a/b/g/n/ac / Bluetooth 4.1+BLE / NFC / ANT+");
- strcpy(s5[3].os, "Android 4.4.4 Kitkat");
- s5[3].camera_pixel = 16000000;
- strcpy(s5[3].size, "82.4 x 151.3 x 8.3 mm, 174 g");
- strcpy(s5[3].color, "Charcoal Black, Frost White, Bronze Gold, Blossom Pink");
- s5[3].bettery = 3220;
- s5[3].price = 957000;
- s5[3].storage = 32;
- strcpy(s5[3].feat, "Finger Print, Heatrate Sensor");
- strcpy(s5[3].release, "9/18/2014");
- strcpy(s5[3].madein, "Gumi, Korea");
- strcpy(s5[3].imei, "None");
- strcpy(s5[3].kernel, "null");
- strcpy(s5[3].touch_type, "Capacitive touch");
- strcpy(s5[3].form, "Bar");
- strcpy(s5[3].rendere, "null");
- strcpy(s5[3].baseband, "null");
- strcpy(s5[3].buildcode, "null");
- // 04 - Samsung Galaxy Pocket Neo
- strcpy(s5[4].info, "Samsung Galaxy Pocket Neo Infomation");
- strcpy(s5[4].name, "GT-S5310");
- strcpy(s5[4].manufact, "Samsung Electronics.Inc");
- strcpy(s5[4].cpu, "Broadcom BCM21654 SoC.");
- s5[4].memory = 0;
- s5[4].inch = 3.0;
- strcpy(s5[4].graphic, "QVGA TFT-LCD");
- strcpy(s5[4].resolurion, "QVGA 320 x 480");
- strcpy(s5[4].network, "HSDPA & HSUPA & UMTS / GSM & EDGE / Wi-Fi 802.11a/b/g/n/ac / Bluetooth 4.0");
- strcpy(s5[4].os, "Android 4.1 Jellybean");
- s5[4].camera_pixel = 2000000;
- strcpy(s5[4].size, "57.8 x 105 x 11.8 mm, 100.5 g");
- strcpy(s5[4].color, "Gray, Blue");
- s5[4].bettery = 1200;
- s5[4].price = 90000;
- s5[4].storage = 4;
- strcpy(s5[4].feat, "None");
- strcpy(s5[4].release, "3/2012");
- strcpy(s5[4].madein, "null");
- strcpy(s5[4].imei, "None");
- strcpy(s5[4].kernel, "null");
- strcpy(s5[4].touch_type, "Capacitive touch");
- strcpy(s5[4].form, "Bar");
- strcpy(s5[4].rendere, "null");
- strcpy(s5[4].baseband, "null");
- strcpy(s5[4].buildcode, "null");
- for (i = 0; i < 5; i++) {
- printf("\n\n%s\n\n", s5[i].info);
- printf("Name : %s\n", s5[i].name);
- printf("Manufacturer : %s\n", s5[i].manufact);
- printf("CPU : %s\n", s5[i].cpu);
- printf("Memory : %dGB\n", s5[i].memory);
- printf("Inch : %finch\n", s5[i].inch);
- printf("Graphic : %s\n", s5[i].graphic);
- printf("Resolution : %s\n", s5[i].resolurion);
- printf("Network : %s\n", s5[i].network);
- printf("OS : %s\n", s5[i].os);
- printf("Camera : %d Mega Pixels\n", s5[i].camera_pixel);
- printf("Size : %s\n", s5[i].size);
- printf("Color : %s\n", s5[i].color);
- printf("Bettery : %dmAh\n", s5[i].bettery);
- printf("Price : %dKW\n", s5[i].price);
- printf("Storage : %dGB\n", s5[i].storage);
- printf("Feature : %s\n", s5[i].feat);
- printf("Release Date : %s\n", s5[i].release);
- printf("Made in : %s\n", s5[i].madein);
- printf("IMEI : %s\n", s5[i].imei);
- printf("Kernel : %s\n", s5[i].kernel);
- printf("Touch Type : %s\n", s5[i].touch_type);
- printf("Form : %s\n", s5[i].form);
- printf("Rendere : %s\n", s5[i].rendere);
- printf("Baseband : %s\n", s5[i].baseband);
- printf("Buildcode : %s\n", s5[i].buildcode);
- };
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment