Created
June 1, 2021 06:41
-
-
Save Kevin-Gomez10/7de522ba9a55ba836bac47a74ca8bf7d to your computer and use it in GitHub Desktop.
POO Act6 Figura C ++ *** main.cpp *** metodos de la clase
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
#include "clasefigura.h" | |
void Figura::Calcula_Area() | |
{ | |
A=L*L; | |
cout<<" Area cuadrado = "<<A<<endl; | |
}// fin de Calcula Area | |
void Figura::Calcula_Perimetro() | |
{ | |
P=4*L; | |
cout<<" Perimetro Cuadrado = "<<P<<endl; | |
}// fin de clase Calcula Calcula_Perimetro |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment