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; | |
class Ponto{ | |
public: | |
Ponto(int _x=1, int _y=1); | |
void setX(int _x); | |
int getX() const; |
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> | |
#include <math.h> | |
#include "circulo.h" | |
using namespace::std; | |
ostream& operator<<(ostream &saida, const Cilindro& cl) { | |
saida << "Cilindro:" << endl << "\t(" << cl.getX() << ", " << cl.getY() << ")" << endl << "\tAltura: " << cl.getAltura() | |
<< endl << "\tVolume: " << cl.getVolume() << endl; | |
return saida; | |
} |
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 <stdio.h> | |
#include <stdlib.h> | |
#define n 10 | |
#include <time.h> | |
int main() | |
{ | |
int vet1[n],vet2[n],uniao[n*2]; | |
int i,j,vdd=0,max,cont=0;; | |
srand(time(NULL)); | |
printf("Primeiro vetor:\n"); |