งานภาษาC ชิ้นที่6 - TopicsExpress



          

งานภาษาC ชิ้นที่6 เพิ่มเติมนิดหน่อย #include #include #include #define textcolor(txt,back) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), back*16+txt) #define resetcolor() SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 15) int A,z,y,; main() { textcolor(10,00); printf(\n\t\t\t\t*****You are Wellcome*****\n); printf(\n\t\t\t\t*****CheckspaceAcer*****\n); printf(\n\t1 Acer\n ); printf(\n\t2 Acer\n ); printf(\n\t3 Acer\n ); printf(\n\t4 Acer\n ); printf(\n\t5 Acer\n ); printf(\n\t6 Acer\n ); printf(\n\t7 Acer\n ); printf(\n\t8 Acer\n ); printf(\n\t9 Acer\n ); printf(\n\t10 Acer\n ); printf(\n\tYou check space Notebook Acer & price? ); scanf(%d,&A); switch(A) { textcolor(31,00); case 1 : printf(\nnotebook\n,A); printf(\nAcer = Aspire E3-111-C5GL.\n); printf(\nCPUIntel = Celeron N2830 2.16 GHz, 1MB L2 Cache, up to 2.41 GHz.\n); printf(\nChipset Mobile = Intel Express Chipset.\n); printf(\nGraphic = CardIntel HD Graphics 4000.\n); printf(\nSize = 11.6 inch WXGA (1366x768) LED.\n); printf(\nMemory = 2 GB DDR3L.\n); printf(\nHard Disk = 320GB 7200 RPM.\n); printf(\n8,990 Bath\n); printf(\nGet Money = ); scanf(%d,&y); z= y-8900; printf(\nchange = %d,z); printf(\n\t\t*****Thank you*****); break; case 2 : textcolor(31,00); printf(notebook.\n,A); printf(\nAcer = Aspire E5-411-C2BE.\n); printf(\nCPUIntel = Celeron N2830 (2.16 GHz, 1MB L2 Cache, up to 2.41 GHz.\n); printf(\nChipset Mobile = Intel Express Chipset.\n); printf(\nGraphic Card= Intel HD Graphics 4000.\n); printf(\nSize = 14 inch WXGA (1366x768) LED.\n); printf(\nMemory = 4 GB DDR3L.\n); printf(\nHard Disk = 500GB 5400 RPM.\n); printf(\n10,900 Bath\n); printf(\nGet Money = ); scanf(%d,&y); z= y-10900; printf(\nchange = %d,z); printf(\n\t\t*****Thank you*****); break; case 3 : textcolor(36,00); printf(notebook.\n,A); printf(\nAcer = Aspire E1-472G-54204G1TMnkk,Mnww.\n); printf(\nCPU = Intel Core i5-4200U (1.60 GHz, 3 MB L3 Cache, up to 2.60 GHz).\n); printf(\nChipset Mobile = Intel HM77 Express Chipset.\n); printf(\nGraphic Card = nVidia GeForce GT820M (2GB GDDR3).\n); printf(\nSize = 14inch WXGA (1366x768) LED.\n); printf(\nMemory = 4 GB DDR3L.\n); printf(\nHard Disk = 1TB 5400 RPM.\n); printf(\n18,900Bath\n); printf(\nGet Money = ); scanf(%d,&y); z= y-18900; printf(\nchange = %d,z); printf(\n\t\t*****Thank you*****); break; case 4 : textcolor(377,00); printf(notebook.\n,A); printf(\nAcer = Aspire P3-171-5333Y4G12as.\n); printf(\nCPU = Intel Core i5-4200U (1.60 GHz, 3 MB L3 Cache, up to 2.60 GHz).\n); printf(\nChipset Mobile = Intel HM77 Express Chipset.\n); printf(\nGraphic Card = Intel HD Graphics 4000.\n); printf(\nsize = 11.6 inch WXGA (1366x768) Multi-touch LED.\n); printf(\nMemory = 4 GB DDR3L.\n); printf(\nHard Disk = 120GB SSD.\n); printf(\n 23,900 Bath\n); printf(\nGet Money = ); scanf(%d,&y); z= y-23900; printf(\nchange = %d,z); printf(\n\t\t*****Thank you*****); break; case 5 : textcolor(500,00); printf(notebook.\n,A); printf(\nAcer = Aspire E5-572G-78HY/T002.\n); printf(\nCPU = Intel Core i7-4712MQ (2.30 GHz, 6 MB L3 Cache, up to 3.30 GHz).\n); printf(\nChipset Mobile = Intel HM86 Express Chipset.\n); printf(\nGraphic Card = nVidia GeForce 840M (2GB GDDR3).\n); printf(\nSize = 15.6 inch WXGA (1366x768) LED.\n); printf(\nMemory = 8GB DDR3L.\n); printf(\nHard Disk = 1TB 5400 RPM.\n); printf(\n25,900 Bath\n); printf(\nGet Money = ); scanf(%d,&y); z= y-25900; printf(\nchange = %d,z); printf(\n\t\t*****Thank you*****); break; case 6 : textcolor(120,00); printf(notebook.\n,A); printf(\nAcer = Aspire S7-392-54208G25tws/T005.\n); printf(\nCPU = Intel Core i5-4200U (1.60 GHz, 3 MB L3 Cache, up to 2.60 GHz).\n); printf(\nChipset Mobile = Intel HM87 Express Chipset.\n); printf(\nGraphic Card = Intel HD Graphics 4400.\n); printf(\nSize = 13.3 inch LED (1920x1080) Full HD IPS.\n); printf(\nMemory = 8 GB DDR3L.\n); printf(\nHard Disk = 256GB SSD.\n); printf(\n54,900 Bath\n); printf(\nGet Money = ); scanf(%d,&y); z= y-54900; printf(\nchange = %d,z); printf(\n\t\t*****Thank you*****); break; case 7: textcolor(30,00); printf(notebook.\n,A); printf(\nAcer = Aspire S7-392-74508G25tws/T004\n); printf(\nCPU = CPUIntel Core i7-4500U (1.80 GHz, 4MB L3 Cache, up to 3.00 GHz)\n); printf(\nChipset = Mobile Intel HM87 Express Chipset\n); printf(\nGraphic Card = Intel HD Graphics 4400\n); printf(\nSize = 13.3 inch LED (1920x1080) Full HD IPS\n); printf(\nMemory = 8 GB DDR3L\n); printf(\nHard Disk = 256GB SSD\n); printf(\n59,900 Bath\n); printf(\nGet Money = ); scanf(%d,&y); z= y-59900; printf(\nchange = %d,z); printf(\n\t\t*****Thank you*****); break; case 8 : textcolor(20,00); printf(notebook.\n,A); printf(\nAcer = TravelMate TMP245-M-54204G1TMnkk\n); printf(\nCPU = Intel Core i5-4200U (1.60 GHz, 3 MB L3 Cache, up to 2.60 GHz)\n); printf(\nChipset = Mobile Intel HM86 Express Chipset\n); printf(\nGraphic Card = Intel HD Graphics 4400\n); printf(\nSize = 14.1 inch WXGA (1366x768) LED\n); printf(\nMemory = 4 GB DDR3\n); printf(\nHard Disk = 1 TB 5400 RPM\n); printf(\n16,990 Bath\n); printf(\nGet Money = ); scanf(%d,&y); z= y-16990; printf(\nchange = %d,z); printf(\n\t\t*****Thank you*****); break; case 9 : textcolor(60,00); printf(notebook.\n,A); printf(\nAcer = Aspire E1-472G-34014G1TMnkk\n); printf(\nCPU = Intel Core i3-4010U (1.7 GHz, 3 MB L3 Cache)\n); printf(\nChipset = Mobile Intel HM77 Express Chipset\n); printf(\nGraphic Card = nVidia GeForce GT820M (2GB GDDR3)\n); printf(\nSize = 14 inch WXGA (1366x768) LED\n); printf(\nMemory = 4 GB DDR3\n); printf(\nHard Disk = 1 TB 5400 RPM\n); printf(\n16,900 Bath\n); printf(\nGet Money = ); scanf(%d,&y); z= y-16900; printf(\nchange = %d,z); printf(\n\t\t*****Thank you*****); break; case 10 : textcolor(700,00); printf(notebook.\n,A); printf(\nAcer = Aspire E1-430P-21174G50Mnkk/T001\n); printf(\nCPU = Intel Pentium 2117U(1.80 GHz, 2 MB L3 Cache)\n); printf(\nChipset = Mobile Intel HM70 Express Chipset\n); printf(\nGraphic Card = Intel HD Graphics 4000\n); printf(\nSize = 14 inch WXGA (1366x768) Multi-touch screen\n); printf(\nMemory = 4 GB DDR3\n); printf(\nHard Disk = 500 GB 5400 RPM\n); printf(\n15,900 Bath\n); printf(\nGet Money = ); scanf(%d,&y); z= y-15900; printf(\nchange = %d\n,z); printf(\n\t\t*****Thank you*****); break; default: textcolor(12,00); printf(\n\tAcer not for sale); } getch(); }
Posted on: Tue, 26 Aug 2014 03:27:28 +0000

Recently Viewed Topics




© 2015