Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <iostream.h>
- #include <conio.h>
- #include <math.h>
- #include "File1.h"
- int Plowad_kruga()
- {
- cout<<"Vvedite svoy radius ot 0.1 do 100:"<<endl;
- cin>>Radius1;
- if(Radius1>=0.1 && Radius1<=100)
- {
- Areal=Radius1*Radius1*Pi;
- printf("Plowad kruga: %.4f\n", Areal);
- }
- else
- {
- cout<<"Wrong!!!"<<endl;
- }
- return Areal;
- }
- void dead::vvod_arg(int A)
- {
- d=A;
- }
- int dead::vyvod_arg(int A)
- {
- return d;
- }
- void main()
- {
- dead lol;
- int choice;
- cout<<"Vybor deystiya:\n1.Plowad kruga\n2.Plowad kolca\n3.Conus and Cube"<<endl;
- cin>>choice;
- switch(choice)
- {
- case 1:{} break;
- case 2:{} break;
- case 3:{} break;
- }
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement