soo...I found out if I have this
Code:
if(current != sentence.end() && *current != *sorted_index){
current++;
}
My program would crash giving me the "list iterator not dereferencable" error.
However if I changed it back to
Code:
if(current != sentence.end()){
current++;
}
It simply does nothing! "Press Enter to continue..."
I've tried using the VS debugging tool and all I get is...
Code:
'permuted.exe': Loaded 'C:\Documents and Settings\Dung\My Documents\Visual Studio 2008\Projects\permuted\Debug\permuted.exe', Symbols loaded.
'permuted.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll'
'permuted.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll'
'permuted.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugCRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_597c3456\msvcp90d.dll', Symbols loaded.
'permuted.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugCRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_597c3456\msvcr90d.dll', Symbols loaded.
The program '[4080] permuted.exe: Native' has exited with code 0 (0x0).
This looks more like something is wrong with my system files...