monoteen

1008HW

Oct 7th, 2014
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 7.15 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. int main(void)
  5. {
  6.     struct galaxy {
  7.         char info[30];
  8.         char name[100];
  9.         char manufact[50];
  10.         char cpu[100];
  11.         int memory;
  12.         float inch;
  13.         char graphic[100];
  14.         char resolurion[50];
  15.         char network[200];
  16.         char os[50];
  17.         int camera_pixel;
  18.         char size[100];
  19.         int weight;
  20.         char color[300];
  21.         int bettery;
  22.         int price;
  23.         int storage;
  24.         char feat[300];
  25.         char release[100];
  26.         char madein[50];
  27.         char imei[30];
  28.         char kernel[200];
  29.         char touch_type[100];
  30.         char form[50];
  31.         char rendere[100];
  32.         char baseband[200];
  33.         char buildcode[200];
  34.     };
  35.     int i;
  36.  
  37.     struct galaxy s5[5];
  38.  
  39.     //01 - Samsung Galaxy S5
  40.     strcpy(s5[0].info, "Samsung Galaxy S5 Infomation");
  41.     strcpy(s5[0].name, "SM-G900");
  42.     strcpy(s5[0].manufact, "Samsung Electronics.Inc");
  43.     strcpy(s5[0].cpu, "Qualcomm Snapdragon 805 APQ8084 SoC.");
  44.     s5[0].memory = 3;
  45.     s5[0].inch = 5.1;
  46.     strcpy(s5[0].graphic, "FHD Super AMOLED");
  47.     strcpy(s5[0].resolurion, "1920x1080");
  48.     strcpy(s5[0].network, "LTE-2CA Cat.4 / 802.11/a/b/g/n/ac / Bluetooth 4.0");
  49.     strcpy(s5[0].os, "Android 4.4.2 Kitkat");
  50.     s5[0].camera_pixel = 16000000;
  51.     strcpy(s5[0].size, "72.5x142x8.1mm");
  52.     strcpy(s5[0].color, "Black, White, Blue, Gold, Pink");
  53.     s5[0].bettery = 2800;
  54.     s5[0].price = 866800;
  55.     s5[0].storage = 32;
  56.     strcpy(s5[0].feat, "Finger Print, Heartrate Sensor");
  57.     strcpy(s5[0].release, "04/29/2014");
  58.     strcpy(s5[0].madein, "Gumi, Korea");
  59.     strcpy(s5[0].imei, "351932060619086");
  60.     strcpy(s5[0].kernel, "Linux 3.4.0-2541437");
  61.     strcpy(s5[0].touch_type, "Capacitive touch");
  62.     strcpy(s5[0].form, "Bar");
  63.     strcpy(s5[0].rendere, "Adreno(TM) 330");
  64.     strcpy(s5[0].baseband, "G900SKSU1ANH");
  65.     strcpy(s5[0].buildcode, "KOT.49H.G900");
  66.  
  67.  
  68.     // 02 - Samsung Galaxy Tab S 10.5
  69.     strcpy(s5[1].info, "Samsung Galaxy Tab S 10.5 Infomation");
  70.     strcpy(s5[1].name, "SM-T800");
  71.     strcpy(s5[1].manufact, "Samsung Electronics.Inc");
  72.     strcpy(s5[1].cpu, "Samsung Exynos 5420 SoC");
  73.     s5[1].memory = 3;
  74.     s5[1].inch = 10.5;
  75.     strcpy(s5[1].graphic, "QHD Super AMOLED");
  76.     strcpy(s5[1].resolurion, "WQXGA 2560 x 1600");
  77.     strcpy(s5[1].network, "Wi-Fi 802.11a/b/g/n/ac / Bluetooth 4.0 / NFC / ANT+");
  78.     strcpy(s5[1].os, "Android 4.4.2 Kitkat");
  79.     s5[1].camera_pixel = 8000000;
  80.     strcpy(s5[1].size, "177.3 x 247.3 x 6.6 mm");
  81.     strcpy(s5[1].color, "Titanium Bronze, Dazzling White");
  82.     s5[1].bettery = 7900;
  83.     s5[1].price = 721000;
  84.     s5[1].storage = 32;
  85.     strcpy(s5[1].feat, "Finger Print");
  86.     strcpy(s5[1].release, "06/20/2014");
  87.     strcpy(s5[1].madein, "Gumi, Korea");
  88.     strcpy(s5[1].imei, "None");
  89.     strcpy(s5[1].kernel, "Linux 3.4.39-2088613");
  90.     strcpy(s5[1].touch_type, "Capacitive touch");
  91.     strcpy(s5[1].form, "Tablet");
  92.     strcpy(s5[1].rendere, "Mali-T628");
  93.     strcpy(s5[1].baseband, "null");
  94.     strcpy(s5[1].buildcode, "KOT49H.G800KXU1ANG1");
  95.  
  96.  
  97.     // 03 - Samsung Galaxy Note Edge
  98.     strcpy(s5[2].info, "Samsung Galaxy Note Edge Infomation");
  99.     strcpy(s5[2].name, "SM-N915");
  100.     strcpy(s5[2].manufact, "Samsung Electronics.Inc");
  101.     strcpy(s5[2].cpu, "Qualcomm Snapdragon 805 APQ8084 SoC");
  102.     s5[2].memory = 3;
  103.     s5[2].inch = 5.6;
  104.     strcpy(s5[2].graphic, "Flexible QHD Super AMOLED");
  105.     strcpy(s5[2].resolurion, "WQHD 2560 x 1440+160");
  106.     strcpy(s5[2].network, "LTE Cat.6 / Wi-Fi 802.11a/b/g/n/ac / Bluetooth 4.1+BLE / NFC / ANT+");
  107.     strcpy(s5[2].os, "Android 4.4.4 Kitkat");
  108.     s5[2].camera_pixel = 16000000;
  109.     strcpy(s5[2].size, "82.4 x 151.3 x 8.3 mm, 174 g");
  110.     strcpy(s5[2].color, "Charcoal Black, Frost White");
  111.     s5[2].bettery = 3000;
  112.     s5[2].price = 1080000;
  113.     s5[2].storage = 32;
  114.     strcpy(s5[2].feat, "Finger Print, Flexible Edge Screen");
  115.     strcpy(s5[2].release, "10/2014");
  116.     strcpy(s5[2].madein, "Gumi, Korea");
  117.     strcpy(s5[2].imei, "None");
  118.     strcpy(s5[2].kernel, "null");
  119.     strcpy(s5[2].touch_type, "Capacitive touch");
  120.     strcpy(s5[2].form, "Bar");
  121.     strcpy(s5[2].rendere, "null");
  122.     strcpy(s5[2].baseband, "null");
  123.     strcpy(s5[2].buildcode, "null");
  124.  
  125.     // 04 - Samsung Galaxy Note 4
  126.     strcpy(s5[3].info, "Samsung Galaxy Note 4 Infomation");
  127.     strcpy(s5[3].name, "SM-N910");
  128.     strcpy(s5[3].manufact, "Samsung Electronics.Inc");
  129.     strcpy(s5[3].cpu, "Qualcomm Snapdragon 805 APQ8084 SoC.");
  130.     s5[3].memory = 3;
  131.     s5[3].inch = 5.7;
  132.     strcpy(s5[3].graphic, "WQHD Super AMOLED");
  133.     strcpy(s5[3].resolurion, "WQHD 2560 x 1440");
  134.     strcpy(s5[3].network, "LTE Cat.6 / Wi-Fi 802.11a/b/g/n/ac / Bluetooth 4.1+BLE / NFC / ANT+");
  135.     strcpy(s5[3].os, "Android 4.4.4 Kitkat");
  136.     s5[3].camera_pixel = 16000000;
  137.     strcpy(s5[3].size, "82.4 x 151.3 x 8.3 mm, 174 g");
  138.     strcpy(s5[3].color, "Charcoal Black, Frost White, Bronze Gold, Blossom Pink");
  139.     s5[3].bettery = 3220;
  140.     s5[3].price = 957000;
  141.     s5[3].storage = 32;
  142.     strcpy(s5[3].feat, "Finger Print, Heatrate Sensor");
  143.     strcpy(s5[3].release, "9/18/2014");
  144.     strcpy(s5[3].madein, "Gumi, Korea");
  145.     strcpy(s5[3].imei, "None");
  146.     strcpy(s5[3].kernel, "null");
  147.     strcpy(s5[3].touch_type, "Capacitive touch");
  148.     strcpy(s5[3].form, "Bar");
  149.     strcpy(s5[3].rendere, "null");
  150.     strcpy(s5[3].baseband, "null");
  151.     strcpy(s5[3].buildcode, "null");
  152.  
  153.  
  154.     // 04 - Samsung Galaxy Pocket Neo
  155.     strcpy(s5[4].info, "Samsung Galaxy Pocket Neo Infomation");
  156.     strcpy(s5[4].name, "GT-S5310");
  157.     strcpy(s5[4].manufact, "Samsung Electronics.Inc");
  158.     strcpy(s5[4].cpu, "Broadcom BCM21654 SoC.");
  159.     s5[4].memory = 0;
  160.     s5[4].inch = 3.0;
  161.     strcpy(s5[4].graphic, "QVGA TFT-LCD");
  162.     strcpy(s5[4].resolurion, "QVGA 320 x 480");
  163.     strcpy(s5[4].network, "HSDPA & HSUPA & UMTS / GSM & EDGE / Wi-Fi 802.11a/b/g/n/ac / Bluetooth 4.0");
  164.     strcpy(s5[4].os, "Android 4.1 Jellybean");
  165.     s5[4].camera_pixel = 2000000;
  166.     strcpy(s5[4].size, "57.8 x 105 x 11.8 mm, 100.5 g");
  167.     strcpy(s5[4].color, "Gray, Blue");
  168.     s5[4].bettery = 1200;
  169.     s5[4].price = 90000;
  170.     s5[4].storage = 4;
  171.     strcpy(s5[4].feat, "None");
  172.     strcpy(s5[4].release, "3/2012");
  173.     strcpy(s5[4].madein, "null");
  174.     strcpy(s5[4].imei, "None");
  175.     strcpy(s5[4].kernel, "null");
  176.     strcpy(s5[4].touch_type, "Capacitive touch");
  177.     strcpy(s5[4].form, "Bar");
  178.     strcpy(s5[4].rendere, "null");
  179.     strcpy(s5[4].baseband, "null");
  180.     strcpy(s5[4].buildcode, "null");
  181.  
  182.  
  183.     for (i = 0; i < 5; i++) {
  184.         printf("\n\n%s\n\n", s5[i].info);
  185.         printf("Name : %s\n", s5[i].name);
  186.         printf("Manufacturer : %s\n", s5[i].manufact);
  187.         printf("CPU : %s\n", s5[i].cpu);
  188.         printf("Memory : %dGB\n", s5[i].memory);
  189.         printf("Inch : %finch\n", s5[i].inch);
  190.         printf("Graphic : %s\n", s5[i].graphic);
  191.         printf("Resolution : %s\n", s5[i].resolurion);
  192.         printf("Network : %s\n", s5[i].network);
  193.         printf("OS : %s\n", s5[i].os);
  194.         printf("Camera : %d Mega Pixels\n", s5[i].camera_pixel);
  195.         printf("Size : %s\n", s5[i].size);
  196.         printf("Color : %s\n", s5[i].color);
  197.         printf("Bettery : %dmAh\n", s5[i].bettery);
  198.         printf("Price : %dKW\n", s5[i].price);
  199.         printf("Storage : %dGB\n", s5[i].storage);
  200.         printf("Feature : %s\n", s5[i].feat);
  201.         printf("Release Date : %s\n", s5[i].release);
  202.         printf("Made in : %s\n", s5[i].madein);
  203.         printf("IMEI : %s\n", s5[i].imei);
  204.         printf("Kernel : %s\n", s5[i].kernel);
  205.         printf("Touch Type : %s\n", s5[i].touch_type);
  206.         printf("Form : %s\n", s5[i].form);
  207.         printf("Rendere : %s\n", s5[i].rendere);
  208.         printf("Baseband : %s\n", s5[i].baseband);
  209.         printf("Buildcode : %s\n", s5[i].buildcode);
  210.     };
  211.  
  212.     return 0;
  213. }
Advertisement
Add Comment
Please, Sign In to add comment