Advertisement
dllbridge

Untitled

May 18th, 2024
973
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.82 KB | None | 0 0
  1.  
  2.  
  3.  
  4.  
  5. #include   <stdio.h>
  6. #include  <string.h>  
  7.  
  8. struct C_CPU
  9. {
  10.    
  11.        char  szNameCPU[17];
  12.        int   nIndxPassMark;
  13.        int   nTDP;
  14.        int   nYear;
  15.        int   nCores;
  16.        int   nThreads;
  17.        char  szSocket  [17];
  18.        char  szModelCPU[17];
  19.        int   nTechProcess;
  20. };
  21.  
  22. void printInfoCPU(C_CPU *p);  
  23.  
  24.  
  25. //////////////////////////////////////////////////////////////
  26. int main()
  27. {
  28.    
  29.     C_CPU  myCPU;
  30.  
  31.  
  32.     strcpy(myCPU.szNameCPU, "N5000");
  33.     myCPU.nIndxPassMark     = 2442;
  34.     myCPU.nTDP              =    6;
  35.    
  36.     printInfoCPU(&myCPU);          
  37.        
  38.  
  39. return 0;
  40. }
  41.  
  42. /////////////////////////////////////////////////////////////
  43. void printInfoCPU(C_CPU *p)                                //
  44. {
  45.      
  46.      printf("Name of CPU %s\n", p->szNameCPU    );
  47.      printf("Passmark =  %d\n", p->nIndxPassMark);  
  48. }
  49.  
  50.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement