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 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 нм
- 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 нм
- 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 <stdio.h>
- #include <stdlib.h>
- /////////////////////////////////////
- struct TT
- {
- int n;
- TT *pNext;
- };
- /////////////////////////////////////
- class LL
- {
- public:
- TT *pHead;
- TT *pTail;
- int nCounter;
- ///////////////
- LL();
- ~LL();
- int push(int a);
- void pop();
- void operator ++();
- int operator [](int);
- void monitor();
- void last();
- void swap();
- };
- //////////////////////////////////////////////////////////
- int LL::operator [](int n)
- {
- }
- LL L1;
- //////////////////////////////////////////////////////////
- int main()
- {
- L1.push(2);
- L1.push(33);
- L1.push(444);
- ++L1;
- //L1.monitor();
- //L1.clear();
- //L1.pop();
- //L1.monitor();
- //L1.last();
- L1.swap();
- L1.monitor();
- return 0;
- }
- //////////////////////////////////////////////////////////
- LL::LL()
- {
- pHead = 0;
- pTail = 0;
- nCounter = 0;
- }
- //////////////////////////////////////////////////////////
- int LL::push(int a)
- {
- TT *p = (TT*)malloc(sizeof(TT));
- p->n = a;
- if(nCounter == 0) pHead = p;
- else
- {
- pTail->pNext = p;
- }
- nCounter++;
- p->pNext = 0;
- pTail = p;
- }
- //////////////////////////////////////////////////////////
- void LL::monitor()
- {
- TT *p = pHead;
- for(int i = 0; i < nCounter; i++)
- {
- printf("%d\t", p->n);
- p = p->pNext;
- }
- }
- //////////////////////////////////////////////////////////
- LL::~LL()
- {
- TT *p;
- TT *p1 = pHead;
- // while(pHead)
- while(p1)
- {
- p = p1;
- p1 = p1->pNext;
- nCounter--;
- free(p);
- printf("\ncounter %d", nCounter);
- }
- pHead = 0;
- pTail = 0;
- }
- /*
- //////////////////////////////////////////////////////////
- void LL::clear()
- {
- TT *p;
- TT *p1 = pHead;
- while(pHead != 0)
- {
- p = p1;
- p1 = p1->pNext;
- nCounter--;
- free(p);
- //printf("counter", nCounter);
- }
- pHead = 0;
- pTail = 0;
- }*/
- //////////////////////////////////////////////////////////
- void LL::pop()
- {
- TT *p = pHead->pNext;
- TT *p1 = pHead;
- free(p1);
- pHead = p;
- }
- //////////////////////////////////////////////////////////
- void LL::last()
- {
- printf("%d", pTail->n);
- }
- //////////////////////////////////////////////////////////
- void LL::swap()
- {
- int a = pHead->n; // ii?aio anee nicaai TT *p, oi iieo?aaony ioeaea a i?eaaaaiee oeiia TT e int
- pHead->n = pTail->n;
- pTail->n = a;
- }
- //////////////////////////////////////////////////////////
- void LL::operator ++()
- {
- pHead->n++;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement