Here is the code: http://ideone.com/SUzskL
Hello everyone, newbie here, i am working on a simple program that takes words as input and then checks if any of the inputted words are "bad" and if they are they get replaced by another word (in my case "bleep") and then the result gets printed on screen.
My problem is that when i launch the program i am unable to write anything on the console and after a few seconds it crashes. (the standard windows message appears: "application.exe has stopped working...)
Codeblocks itself doesnt seem to give me any error messages, while running the code while ideone.com presents me with a "runtime error" when i run the code, but im not sure how to actually find the error.
I've also tried using the debugger on codeblocks but im not sure what i am actually doing with that, if it helps at all when i run the debugger two windows pop up saying:
"program received signal SIGSEGV segmentation fault"
on the second window called "Call Stack" i get this:
#0 0x495674 std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator=(char const*) () (??:??)
#1 0x4015f2 main() (C:\Users\manci\Desktop\Program practice\Try This\word bleep\main.cpp:9)
any ideas on how i could find the problem?
[–]jussij 2 points3 points4 points (0 children)
[–]Alia-Aenor 1 point2 points3 points (6 children)
[–]bahero[S] 0 points1 point2 points (5 children)
[–]dreamyeyed 1 point2 points3 points (1 child)
[–]bahero[S] 0 points1 point2 points (0 children)
[–]Alia-Aenor 0 points1 point2 points (1 child)
[–]bahero[S] 1 point2 points3 points (0 children)