I'm trying to combine words from characters which i'm reading from a file. The problem is in the combining the characters. The way I'm doing it is the following:
Check the value of x and y after line 15 has run in main. You will find they are still 0 because you do not pass back the the allocated pointers. The value returned by new remains local ro read_data. This code is very unstructured and you could avoid the whole thing by applying a little structure. Instead of 2 arrays ...
i studied c++ before c guess that was my mistake... i try to read from a file a set of strings and put them in the new allocated array, i do not understand what is the main thing this code isnt working. i get segmentation fault... and even trying to input a character in the array will result in seg fault. ...