Skip to content

Instantly share code, notes, and snippets.

#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");
#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;
}
#include <iostream>
using namespace::std;
class Ponto{
public:
Ponto(int _x=1, int _y=1);
void setX(int _x);
int getX() const;