Skip to content

Instantly share code, notes, and snippets.

@josuenoel
Last active December 14, 2015 01:59
Show Gist options
  • Save josuenoel/5010117 to your computer and use it in GitHub Desktop.
Save josuenoel/5010117 to your computer and use it in GitHub Desktop.
#ifndef ITEM_H
#define ITEM_H
#include<string.h>
#include<string>
class Item{
double precioVenta, precioCompra;
int cantidad;
string nombre;
public:
Item(string,double,double,int);
void setNombre(string nombre){
this->nombre=nombre;
}
stri
void setCantidad(int cant){
this->cantidad=cant;
}//fin de la funcion
void setPrecio_venta(double venta){
this->precioVenta=venta;
}//fin de la funcion
//lol how do I c++?
};
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment