Advertisement
Draegon

Poligono.cpp

Nov 24th, 2014
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.47 KB | None | 0 0
  1. // ARQUIVO .CPP DA CLASSE POLIGONO.
  2. #include "Poligono.h"
  3. #include <iostream>
  4. #include <string>
  5.  
  6. using namespace std;
  7.  
  8. Poligono::Poligono (int x,int y,int z,const string& c) // MEU COMPILADOR ESTÁ MOSTRANDO ERRO NESSA LINHA!!
  9. {
  10.     centro[0] = x;
  11.     centro[1] = y;
  12.     zindex = z;
  13.     cor = c;
  14. }
  15. void Poligono::getCentro()
  16. {
  17.     cout << "Poligono com centro em x= "<< centro[0] << " e y= " << centro[1] << endl;
  18. }
  19. string Poligono::getCor()
  20. {
  21.     return cor;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement