Other than that, you have some logic errors. Assuming d[size-1] is the "ones" digit, then your resize() function will not work because it doesn't shift the digits over like it should. It also doesn't zero the highest digit like it should.
Other than that I only see style issues (for the love of god put some line breaks on line 4, and put braces around the loop on line 10)
Also, when you have such problems, you should use the debugger (or valgrind). Those programs will tell you exactly how, where and why the program has crashed.
now it works..... but very very slowly :(
That's not surprising. resize(size+1); is a very, very, very (repeat as often as you like) bad idea.