0
私はこれがポインタと何かを持っていると仮定していますが、ここではエラーが発生している私のコードです。明らかに私はまだ行われていませんが、エラーは以下のコードのキーにあります。ここで式はクラスタイプを持っている必要があります
bool LCR_cipher::iskeysOK()
{
vector<char> v(keys.begin(), keys.end());
std::transform(v[0].begin(), v[0].end(), v[0].begin(), ::tolower);
}
は、ヘッダファイル私がここに間違って行くのです
class LCR_cipher
{
public:
// Constructor:
LCR_cipher(char *context_string, char *keys_string);
// Destructor: deallocate memory that was allocated dynamically
~LCR_cipher();
//check whether *keys string has valid LCR encryption value
bool iskeysOK();
//encrypt context string
void encryption();
//unencrypt context string (optional)
void unencryption();
//check whether the context string is encrypted or not
bool isencrypted();
//Retrieve CLR encryption value from *keys string
void getkeys(int& a, int& c);
// output the *context to console
void output_context();
private:
char *context; //array to store context string
char *keys; //array to store encryption keys
bool encrypted; //whether string in *context is encrypted or not
int context_MaxSize;
int context_CurrentSize;
int keys_MaxSize;
int keys_CurrentSize;
}
のですか?ここ
質問にコンパイラから返されたエラーテキスト – NathanOliver
まず、関数が 'bool'を返すと宣言していても、関数は何も返されません – UnholySheep