Hi everyone !!
i have an interesting problem...hope you people can help.
I am coding in C.
the code is posted below:
here I have a structure with two character vectors.
I have to characters. in them depending on a text file. Arround 76,000 characters in each of them one after the other....But i am not able to do so...the program runs fine for small data...but with these 76,000 characters pushed in each vector one after the other causes the following error while runing
=============== =====
terminate called after throwing an instance of 'std::bad_alloc '
what(): St9bad_alloc
Aborted
=============== ========
am I running out of RAM .. what is the problem???
please help it is urgent!!!
Code removed, please read the posting guidelines
i have an interesting problem...hope you people can help.
I am coding in C.
the code is posted below:
here I have a structure with two character vectors.
I have to characters. in them depending on a text file. Arround 76,000 characters in each of them one after the other....But i am not able to do so...the program runs fine for small data...but with these 76,000 characters pushed in each vector one after the other causes the following error while runing
=============== =====
terminate called after throwing an instance of 'std::bad_alloc '
what(): St9bad_alloc
Aborted
=============== ========
am I running out of RAM .. what is the problem???
please help it is urgent!!!
Code removed, please read the posting guidelines
Comment