Skip to content

Instantly share code, notes, and snippets.

@Kevin-Gomez10
Kevin-Gomez10 / joan.cpp
Created June 23, 2021 01:08
UIII POO Act16 clase estudiante herencia persona v2
#include <iostream>
using namespace std;
#include "joan.h"
// Funciones Clase Persona
persona::persona()
{
int p=0;
establecerPersona(p);
@Kevin-Gomez10
Kevin-Gomez10 / joan.h
Created June 23, 2021 01:06
UIII POO Act16 clase estudiante herencia persona v2
#ifndef estudiante_h
#define estudiante_h
class persona
{
private:
int Identidad;
public:
@Kevin-Gomez10
Kevin-Gomez10 / main.cpp
Created June 23, 2021 01:01
UIII POO Act16 clase estudiante herencia persona v2 ***main.cpp***
#include <iostream>
using namespace std;
#include "joan.h"
int main()
{
estudiante e1;
cout << "\nCapturando los datos de un estudiante: " << endl;
e1.capturarPersona();
@Kevin-Gomez10
Kevin-Gomez10 / main.dart
Created June 19, 2021 00:38
POO Act15 Drawer ***main.dart***
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}// fin de main
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
@Kevin-Gomez10
Kevin-Gomez10 / main.dart
Created June 17, 2021 23:55
POO Act14 flutter rectangulo **** main.dart ****
import 'package:flutter/material.dart';
void main(){
runApp(
MaterialApp(
debugShowCheckedModeBanner: false,
title: "Proyecto rectangulo",
home: Scaffold(
appBar: AppBar(
title: Text("Hola Rectangulo Kevin")
@Kevin-Gomez10
Kevin-Gomez10 / animal.cpp
Created June 16, 2021 01:34
POO Act13 clase Animal perro
#include <iostream>
using namespace std;
#include "animal.h"
void Animal::cargar_datos(){
cout<<"Ingrese Nombre Del Animal: " <<endl;
cin>>nombre;
cout<<"Ingrese Raza Del Animal: " <<endl;
cin>>raza;
@Kevin-Gomez10
Kevin-Gomez10 / animal.h
Created June 16, 2021 01:33
POO Act13 clase Animal perro
#ifndef animal_h
#define animal_h
class Animal{
public:
string nombre;
string raza;
string NresponsableP;
void cargar_datos();
@Kevin-Gomez10
Kevin-Gomez10 / main.cpp
Created June 16, 2021 01:29
POO Act13 clase Animal perro
#include <iostream>
using namespace std;
#include "animal.h"
int main()
{
Perro Punky;
Punky.cargar_datos();
Punky.VerDatos();
@Kevin-Gomez10
Kevin-Gomez10 / joan.cpp
Created June 15, 2021 05:18
POO Act12 clase figura hipotenusa
#include <iostream>
#include<math.h>
using namespace std;
#include "joan.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
@Kevin-Gomez10
Kevin-Gomez10 / joan.h
Created June 15, 2021 05:17
POO Act12 clase figura hipotenusa
#ifndef joan_h
#define joan_h
class figura{
public:
double A, B, h;
void cargar_datos();
double cuadrado(double x);
};// fin de figura