the compiler sets that as one function so the parameter passes through. that means, the program sees that part as one part, then it computes the next quotes, but you would never input "http://www.blah.com" because those quotes alone are a command. I tried making a C++ html generator and found it cant output or write any thing with quotes, within a quote. This is a simple error. Nice piece of code there btw.
the compiler sets that as one function so the parameter passes through. that means, the program sees that part as one part, then it computes the next quotes, but you would never input "http://www.blah.com" because those quotes alone are a command. I tried making a C++ html generator and found it cant output or write any thing with quotes, within a quote. This is a simple error. Nice piece of code there btw.
You have to escape the quotes so that it doesnt think its the end or start of a string:
sorry hadnt noticed the escape commands before. lol. but it just seems if he had coded this himself he would know whats going on, rather it looks more as if he copied and paste the code and now cant compile it or so. I stop learning C++ and went to PHP and learned the esacpe command, but wasnt too sure if they worked for C++. Sorry again and thanks for pointing that out RNA.
ebrizzlez wrote:sorry hadnt noticed the escape commands before. lol. but it just seems if he had coded this himself he would know whats going on, rather it looks more as if he copied and paste the code and now cant compile it or so. I stop learning C++ and went to PHP and learned the esacpe command, but wasnt too sure if they worked for C++. Sorry again and thanks for pointing that out RNA.
Hey man no problem, the knowledge is useless if I dont share it.