Files
Victor Eijkhout b1b5c12e1a lotsa cleanup
2023-08-16 18:54:47 -05:00

29 lines
654 B
C++

/****************************************************************
****
**** This file belongs with the course
**** Introduction to Scientific Programming in C++/Fortran2003
**** copyright 2018 Victor Eijkhout eijkhout@tacc.utexas.edu
****
**** hasvector.cxx : member initializer on object
****
****************************************************************/
#include <iostream>
#include <vector>
using namespace std;
class witharray {
private:
vector<int> the_array;
public:
witharray( int n )
: the_array(n) {
cout << "contains vector of size: " << the_array.size() << '\n';
};
};
int main() {
witharray x(5);
return 0;
}