c-resources/CPlusPlus20ForProgrammers-m.../examples/vector/main01.cpp

17 lines
207 B
C++

#include "shapes.h"
#include <iostream>
int main(){
Cube a(1.0);
Cube b(3.0);
Cube d{Cube()};
Cube c(a);
c[0] = 100.0;
std::cout << "a.data-->"<< a[0] << " c.data--->" << c[0];
return 0;
}