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
#ifndef rectangulo_h | |
#define rectangulo_h | |
class Figura{ | |
public:// Atributos | |
double A; | |
double b; | |
double h; | |
double P; |
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 "leslie.h" | |
// Metodos | |
void Figura::Calcula_Area() | |
{ | |
A=b*h; | |
cout<<"leslie.cpp --> Area Rectangulo = "<<A<<endl; |
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 "leslie.h" | |
int main() | |
{ // crear objeto | |
Salario Sueldo; | |
// Llamar Metodo |
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
#ifndef Salario_h | |
#define Salario_h_h | |
class Salario{ | |
public://Atributos | |
double K; | |
double H; | |
double S; |
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 "leslie.h" | |
void Salario::Calcular_S() | |
{ | |
cout<<"Horas Trabajadas ?"<<endl; | |
cin>>S; | |
cout<<"Pago Por Hora ?"<<endl; |
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
import 'package:flutter/material.dart'; | |
void main() { | |
runApp( | |
MaterialApp( | |
debugShowCheckedModeBanner: false, | |
home: Scaffold( | |
backgroundColor: Colors.red, | |
appBar: AppBar( | |
title: Text('Leslie es programadora uwu'), |
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> | |
#include<math.h> | |
using namespace std; | |
#include "leslie.h" | |
int main() | |
{ | |
hipotenuza objh; | |
objh.cargar_datos(); |
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
#ifndef leslie_h | |
#define leslie_h_h | |
class figura{ | |
public: | |
double A, B, h; | |
void cargar_datos(); | |
double cuadrado(double x); | |
};//fin de figura |
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> | |
#include<math.h> | |
using namespace std; | |
#include "leslie.h" | |
void figura::cargar_datos(){ | |
cout<<"ingrese valor de a= "<<endl;cin>>A; | |
cout<<"ingrese valor de b= "<<endl;cin>>B; | |
}//fin de cargar datos |
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 "leslie.h" | |
int main() | |
{ | |
Perro Punky; | |
Punky.cargar_datos(); | |
Punky.VerDatos(); |