C++ vector not storing class
C++ vector not storing class I am writing a simple feed-forward neural network in c++, however when I try to store my neuron class in my layer structure, it crashes and gives this output: terminate called after throwing an instance of 'std::bad_array_new_length' terminate called after throwing an instance of 'std::bad_array_new_length' what(): std::bad_array_new_length what(): std::bad_array_new_length This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. Here is my program: #include <iostream> #include <random> #include <vector> using namespace std; random_device e; int randomG(int min, int max){ return (e()%(max-min))+min; } int f(int v){ return v+5; } class neuron{ public: neuron(int _insN, int _funt...
