Advertisement
dllbridge

Untitled

Feb 3rd, 2025
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.36 KB | None | 0 0
  1.  
  2.  
  3.  
  4. #include   <stdio.h>
  5.  
  6.  
  7.  
  8.  
  9. //////////////////////////////
  10. class T
  11. {
  12.     public:
  13.            
  14.     int   n;
  15.     float f;          
  16. };
  17.  
  18.  
  19. T t1, t2;
  20.  
  21. //////////////////////////////////////////////////
  22. int main()
  23. {
  24.  
  25.     t1.f = 12.81;
  26.                
  27.     printf("t1.n = %7d  \n", t1.n);    
  28.     printf("t1.f = %7.2f\n", t1.f);        
  29.  
  30. return 0;
  31. }
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement