Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ARQUIVO .CPP DA CLASSE POLIGONO.
- #include "Poligono.h"
- #include <iostream>
- #include <string>
- using namespace std;
- Poligono::Poligono (int x,int y,int z,const string& c) // MEU COMPILADOR ESTÁ MOSTRANDO ERRO NESSA LINHA!!
- {
- centro[0] = x;
- centro[1] = y;
- zindex = z;
- cor = c;
- }
- void Poligono::getCentro()
- {
- cout << "Poligono com centro em x= "<< centro[0] << " e y= " << centro[1] << endl;
- }
- string Poligono::getCor()
- {
- return cor;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement