Encoder Error
ProgrammerAI (4)

Hey guys, it's me ProgrammerAI. I need help with my encoder. i don't know what is going on. please help. just run it and you will see.

You are viewing a single comment. View All
mwilki7 (280)

Looks like your encode function was using char arrays instead of strings.
Try this:

void encode() {
	string message;
	cout << "Enter message: ";
	getline(cin, message);
	string newMessage = encoder.hello(message, add);
	cout << newMessage << endl;