Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <iostream.h>
  3. #include <conio.h>
  4. #include <math.h>
  5. #include "File1.h"
  6.  
  7.  
  8.  
  9.  
  10.  
  11. int Plowad_kruga()
  12. {
  13. cout<<"Vvedite svoy radius ot 0.1 do 100:"<<endl;
  14. cin>>Radius1;
  15.  
  16. if(Radius1>=0.1 && Radius1<=100)
  17. {
  18. Areal=Radius1*Radius1*Pi;
  19. printf("Plowad kruga: %.4f\n", Areal);
  20. }
  21. else
  22. {
  23. cout<<"Wrong!!!"<<endl;
  24. }
  25. return Areal;
  26. }
  27.  
  28. void dead::vvod_arg(int A)
  29. {
  30. d=A;
  31. }
  32.  
  33. int dead::vyvod_arg(int A)
  34. {
  35. return d;
  36. }
  37.  
  38.  
  39. void main()
  40. {
  41. dead lol;
  42. int choice;
  43.  
  44. cout<<"Vybor deystiya:\n1.Plowad kruga\n2.Plowad kolca\n3.Conus and Cube"<<endl;
  45. cin>>choice;
  46. switch(choice)
  47. {
  48. case 1:{} break;
  49.  
  50. case 2:{} break;
  51.  
  52. case 3:{} break;
  53. }
  54.  
  55. getch();
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement