To solve caesar's cipher, I'm trying to concatenate each character onto the end of the cipher string (as c[i] = "blah"
didn't work). strcat
isn't working for me, though. First of all, this thing below produces a segmentation fault (whatever that is...).
int main(void)
{
string s = "a";
string new = strcat(s, "a");
printf("%s\n", new);
}
Or maybe someone can give a quick suggestion on a better way to build the cipher string. Idk, I could have knocked this problem out in 5 minutes with Ruby or Python, but C syntax is kicking my...