Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Passmark CPU Mark:
- VIA C7-M = 98, 15 wt,
- P4 2,4GHz = 131, 60 wt, 2004 1-1 Pentium 130 нм
- N270 = 136, 2,5 wt, 2008 1-2 PBGA437 Atom 45 нм
- D410 = 180, 10 wt, 2010 1-2 FCBGA559 Atom 45 нм
- D425 = 204, 10 wt, 2010 1-2 FCBGA559 Atom 45 нм
- D2500 = 233, 10 wt, 2010 2-2 FCBGA559 Atom 32 нм
- N2600 = 316, 3,5 wt, 2011 2-4 FCBGA559 Atom 32 нм
- N570 = 341, 8,5 wt, 2011 2-4 FCBGA559 Atom 45 нм ASUS Eee PC 1011PX
- 330 = 363, 8 wt, 2008 2-4 PBGA437 Atom 45 нм
- D525 = 398, 13 wt, 2010 2-4 FCBGA559 Atom 45 нм
- J1800 = 590, 10 wt, 2013 2-2 FCBGA1170 Celeron 22 нм
- N3050 = 592, 6 wt, 2015 2-2 FCBGA1170 Celeron 14 нм
- N3060 = 658, 6 wt, 2016 2-2 FCBGA1170 Celeron
- E6600 = 919, 65 wt, 2007 2-2 Core 65 нм
- 3205U = 946, 15 wt, 2015 2-2 FCBGA1168 Celeron
- 1037U = 978, 17 wt, 2013 Celeron
- N3350 = 1108, 6 wt, 2016 2-2 FCBGA1296 Celeron
- j1900 = 1151, 10 wt, 2013 4-4 FCBGA1170 Celeron 22 нм
- N3160 = 1180, 6 wt, 2016 4-4 FCBGA1170 Celeron 14 нм
- j3355 = 1197, 10 wt, 2016 2-2 FCBGA1296 Celeron 14 нм
- j3060 = 1269, 6 wt, 2016 4-4 FCBGA1170 Celeron 14 нм
- i3 530 = 1501, 73 wt, 2010 2-4 FCLGA1156 Core 32 нм
- N4020 = 1556, 6 wt, 2019 2-2 Celeron
- M-5Y10 = 1644, 4,5 wt, 2014 2-4 FCBGA1234 Core 14 нм Broadwell-Y (2014)
- M-5Y10c = 1892, 4,5 wt, 2014 2-4 FCBGA1234 Core 14 нм
- m3-6y30 = 2170, 4,5 wt, 2015 2-4 FCBGA1515 Core m3 14 нм Skylake-Y (2015)
- 8200y = 2215, 5 wt, 2018 2-4 FCBGA1515 Core i5 14 нм Amber Lake-Y
- 6006u = 2276, 15 wt, 2016 2-4 FCBGA1356 Core i3 14 нм
- N5000 = 2442, 6 wt, 2017 4-4 FCBGA1090 Pentium 14 нм
- i5-7y54 = 2649, 4,5 wt, 2016 2-4 FCBGA1515 Core i5 14 нм Kaby Lake (2016?2019)
- j4125 = 2956, 10 wt, 2019 4-4 FCBGA1090 Celeron 14 нм
- 7200u = 3381, 15 wt, 2016 2-4 FCBGA1356 Core i5 14 нм
- N5095 = 4105, 15 wt, 2021 4-4 Celeron
- 7505 = 5199, 15 wt, 2020 2-4 BGA1449 Pentium
- N100 = 5489, 6 wt, 2023 -4 FCBGA1264 Intel 7 нм
- */
- #include <iostream>
- #include <string>
- using namespace std;
- /*
- //////////////////////
- enum class month
- {
- January = 1,
- February,
- March,
- April,
- May,
- June,
- July,
- August,
- September,
- October,
- November,
- December
- };
- ///////////////////////////////////////////////////////
- string get_month(month m) //
- {
- switch(m)
- {
- case month:: January: return "Январь";
- case month:: February: return "Февраль";
- case month:: March: return "Март";
- case month:: April: return "Апрель";
- case month:: May: return "Май";
- case month:: June: return "Июнь";
- case month:: July: return "Июль";
- case month:: August: return "Август";
- case month::September: return "Сентябрь";
- case month:: October: return "Октябрь";
- case month:: November: return "Ноябрь";
- case month:: December: return "Декабрь";
- }
- }
- */
- //////////////////////
- enum month
- {
- January = 1,
- February,
- March,
- April,
- May,
- June,
- July,
- August,
- September,
- October,
- November,
- December
- };
- ///////////////////////////////////////////////////////
- const char* get_month(month m) //
- {
- cout << "Address of m = " << &m << endl;
- switch(m)
- {
- case January: return "Январь";
- case February: return "Февраль";
- case March: return "Март";
- case April: return "Апрель";
- case May: return "Май";
- case June: return "Июнь";
- case July: return "Июль";
- case August: return "Август";
- case September: return "Сентябрь";
- case October: return "Октябрь";
- case November: return "Ноябрь";
- case December: return "Декабрь";
- }
- }
- ///////////////////////////////////////////////////////
- int main() //
- {
- setlocale(LC_ALL, "rus");
- int num;
- const char* monthName;
- month monthNum;
- cout << "true = " << true << endl;
- cout << "false = " << false << endl;
- while(77)
- {
- cout << "Введите номер месяца: "; cin >> num;
- if(num > 12)
- {
- cout << "Номер больше допустимого!" << endl;
- continue;
- }
- if(num == 0)
- {
- cout << "До свидания!" << endl;
- break;
- }
- if(num < 0)
- {
- cout << "Меньше допустимого номер!" << endl;
- continue;
- }
- monthNum = static_cast<month>(num);
- cout << "Address of monthNum = " << &monthNum << endl;
- monthName = get_month(monthNum);
- cout << monthName << endl;
- }
- cin >> num;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement