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(KevinApp()); | |
class KevinApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'Flutter jorge luis', | |
debugShowCheckedModeBanner: false, // quitar baner |
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" | |
int main() | |
{// creando el objeto a partir de la clase figura | |
Figura Cuadrado; | |
//asignar valores.L=5; | |
//Llamar funciones para calcular area y perimetro | |
Cuadrado.Calcula_Area(); | |
Cuadrado.Calcula_Perimetro(); |
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 figura_h | |
#define figura_h | |
class Figura{ | |
public: //Atributo | |
double A; | |
double P; | |
double L; | |
// Metodos | |
void Calcula_Area(); | |
void Calcula_Perimetro(); |
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() | |
{ |
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 "gomez.h" | |
// Metodos | |
void Figura::Calcula_Area() | |
{ | |
A=b*h; | |
cout<< "gomez.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
#ifndef rectangulo_h | |
#define rectangulo_h | |
class Figura{ | |
public:// Atributos | |
double A; | |
double b; | |
double h; |
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 "gomez.h" | |
int main() | |
{//creando el objeto a partir de la Clase Figura | |
Figura Rectangulo; | |
//Asignar Valores | |
Rectangulo.h=7; |
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'; | |
main() { | |
runApp( | |
MaterialApp( | |
debugShowCheckedModeBanner: false, // quitar banner rojo | |
home: Galeriafotos(), | |
), | |
);// fin de runApp | |
}// fin de main |
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 "salario.h" | |
int main() | |
{ // crear objeto | |
Salario Sueldo; | |
// Llamar Metodo | |
Sueldo.Calcular_S(); |
OlderNewer