- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
Re: source code and error log would help, to help you.. | |
Re: you dont need to buy any book, just read this tutorial: [url]http://cplusplus.com/doc/language/tutorial/[/url] make sure you understand most of the basic stuff (variables, functions, pointers) its not very hard, it just needs some time to work with.. more you program, easier you understand new stuff... | |
Re: why the hell is anyone answering to this?? i thought this is forum where i can learn something new from others, now i see that this is only for lames, to waste others (your) time.. | |
Re: int **EL= (int**)malloc(row*col*sizeof(int) + col*sizeof(int*)); EL[0] - this is first pointer in array EL[0][0] - this is first pointer in array POINTED BY EL[0] since you didnt initialize it (EL[0]), you have random data in there, so you access random memory - segmentation fault you have to use EL[i*row+j] (or … | |
Re: you should create function which takes 2 of your structs, compares them and then return result.. [url]http://www.cplusplus.com/ref/cstdlib/qsort.html[/url] i think link aboes explaines it very clearly :] |