I'm trying to change C++ code to HTML, I made an tool, and I really need this. The program is just for me, not need-ing to allocate memory and other programming good pratices... But I can't find the real error int this simple code!?! Why it doesn't works?
You need to explain more than "it doesn't work". Does it blow up your next-door neighbor's house? Does it start a grease fire? Does it embezzle federal funds? You need to be specific.
I switched the string by a char. Now, I'm getting a runtime error while going to create the other file (as gdb.exe said, in function extension_ocurrence(), just the renaming, but don't know why and how to fix :|). My code is
It replaces newlines, less than symbols and greater than symbols with the equivalent html entity name. It would probably be simpler to use a <code></code> container...
Becasue its not working on my linux ubuntu compiler
Since you didn't know what the program did, how do you know it's not working? Is it not compiling? If it isn't, does your compiler not give you a listing of errors/warnings? If it is compiling, what makes you think it doesn't work?