Yeah, but I want to be able to do this:
Code:
#include <iostream>
#include <cstring>
char blah(const char* blahblah); //char* gives me an error, so I use const char* and I believe this creates the function
char blah(const char* blahblah)
{
strcat(blahblah, " more blah");
}
int main()
{
blah("blah");
return 0;
}
That should return "blah more blah", but it gives me the same error as before.
EDIT: Nevermind about the "char*" giving me an error in this program, but in the other one I made which uses this, gives me an error, but I'll try again.