Can anyone pinpoint the problem in my code here, i found the root of the problem in the void Rodymas() if statement, but i'm not sure why is it not processing the request.
Well your code won't even compile on my system. Here are the error messages:
main.cpp|58|error: flexible array member ‘Tekstas::masyvas’ not at end of ‘class Tekstas’|
main.cpp|55|note: in the definition of ‘class Tekstas’|
main.cpp||In constructor ‘Tekstas::Tekstas()’:|
main.cpp|64|error: unknown array size in delete|
main.cpp|85|error: ISO C++ forbids variable length array ‘masyvas’ [-Wvla]|
main.cpp||In destructor ‘Tekstas::~Tekstas()’:|
main.cpp|55|error: unknown array size in delete|
main.cpp||In function ‘int main()’:|
main.cpp|117|note: synthesized method ‘Tekstas::~Tekstas()’ first required here |
You may want to consider using std::vector instead of the arrays.