Hello people, I would greatly appreciate someones help on my program. I have to make a word scanner program and I have came to a stop because of this stupid segmentation fault. And i have pin pointed that my program works up to my get_words function which I have below.
I have those cout statements to show where it stops and its stoping right before where i call a clean_entry function.
like i said really weird so thanks in advance.
Welcome to the forums. What does clean_entry() do?
I can see you declare string clean;, but you don't assign a value to it before you pass it on to clean_entry(). Does clean_entry() try to access characters of clean or orig_word which aren't there?
On a sidenote, please wrap your code in [code][/code]-tags, it makes it more readable.
this is the code for that function. And sorry for the tags will do in the from now on. But i do see what you are telling me and that would seem like the problem any hints on how to solve it??
> I have those cout statements to show where it stops
Get a debugger, execute your program and perform a backtrace where it crashes.
You can look all the variables that you want there.
By the way, ¿do you realize that `cout' is line buffered?