enter image description here
It's causing an Expected ';' after top level declarator, error (during build) in Xcode at this line: void intArray::writeToFile(<#char *filename#>)
I've heard that this is because Xcode add "#" to my program, is that why?And how can I remove this two "#"?
Thanks a lot.
Here's my code:
using namespace std;
void writeToFile(char *filename);
delete  array;
void intArray::writeToFile(<#char *filename#>)
I think I've finally figured this one out, and it appears to be a side effect of how XCode handles its parameter suggestions, the ones you can tab between (they're normally blue, I think).
If you copy such a suggestion in XCode, you get the strange characters, and pasting text surrounded with those characters in XCode will turn that text blue.
If you start writing the method name, like
writeToFile, XCode will suggest a parameter list taken from the declaration (it's shown in blue).
That text doesn't really "exist" until you've written it or accepted the suggestion, though, and until that text exists, the absence of it will cause confusing errors.
The fix should be pretty simple: put your cursor in the blue parameter list and press Enter to accept it (or write the text by hand).