I have been trying to figure out a way to make the two compatible but I can't seem to do it, any help?

#include <iostream>
#include <string>
#include <fstream>
#include <cstdlib>
#include <cstring>
using namespace std;

const int max = 100;

char decode (char encrypted_string[16], char decrypted[], int key);
int main ( )
{
    char uncoded_string[16];  
    char crypted_string[16] = ":mmZ\dxZmx]Zpgy";
    int key;
    decode (crypted_string[16], uncoded_string[16], key);
    system ("pause");
    return 0;
}

There is more to the whole program but it's not really pertinent to what's going on, I'll post it if you need it but other wise I mainly am trying to figure out why I get the conversion error code for "decode (crypted_string[16],uncoded_string[16],key);

Recommended Answers

All 2 Replies

line 16 is wrong. The parameters are only variable names, not the variable size decode (crypted_string, uncoded_string, key);

It was so simple thank-you :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.