Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- struct C_CPU
- {
- char szNameCPU[17];
- int nIndxPassMark;
- int nTDP;
- int nYear;
- int nCores;
- int nThreads;
- char szSocket [17];
- char szModelCPU[17];
- int nTechProcess;
- };
- void printInfoCPU(C_CPU *p);
- //////////////////////////////////////////////////////////////
- int main()
- {
- C_CPU myCPU;
- strcpy(myCPU.szNameCPU, "N5000");
- myCPU.nIndxPassMark = 2442;
- myCPU.nTDP = 6;
- printInfoCPU(&myCPU);
- return 0;
- }
- /////////////////////////////////////////////////////////////
- void printInfoCPU(C_CPU *p) //
- {
- printf("Name of CPU %s\n", p->szNameCPU );
- printf("Passmark = %d\n", p->nIndxPassMark);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement