#include using namespace std; #include "cdyn.h" int main(){ struct dynarray test_array; init(&test_array, 10); for(int i = 0; i < 100; i++) append(&test_array, i * 3.0); for(int i = 0; i < 100; i++) cout << test_array.data[i] << " "; cout << endl; free_dynarray(&test_array); struct dynarray other_array; init(&other_array, 10); for(int i = 0; i < 100; i++) append(&other_array, i * 1.5); for(int i = 0; i < 100; i++) cout << other_array.data[i] << " "; cout << endl; free_dynarray(&other_array); return 0; }