I have two files. In file 1 there are three columns with 910000 data. In file 2 there are 4 columns with 232245 data. File 1 (col1) and file 2 (col2) has the same parameter and file 1 (col2) and file2 (col3) has the same parameter.
Now I want short the file 1 with file2 (col2 and col 3) and get the out put. i am trying with this code but it is giving error.
Stack overflow means that the space which your operating system has assigned to your program as "stack space" has ran out. You could try and declare the array on the heap in stead:
int ID = int[232245];
This post has some good info on this subject: http://www.cplusplus.com/forum/general/12086/
Two tables. Join by id field(s). Basic SQL query operation.
GNU has "join" command.
The question is, what is the priority? Getting the job done or use of C++. If the latter, put the smaller set into std::map and then filter the larger set. Concatenate the keyfields to one too.