2016-06-13 04:05:15
0
I build an app that uses the Vigenere cipher to encoded words or sentences. It works but everything was contained in main(). I'm rebuilding the app using functions. But I'm getting the error 'Subscripted value is not an array, pointer, or vector' when it appears to me that it is an array.
Error comes from this
if ((int)sentencetoencode[repeatciphercounter] < 65 || ((int)sentencetoencode[repeatciphercounter] > 90 && (int)sentencetoencode[repeatciphercounter] < 97) || (int)sentencetoencode[repeatciphercounter] > 122)
{
ciphersentence[repeatciphercounter] = (char)32;
Additional warning for incompatible pointer to integer conversion passing 'char [100]' to parameter type of 'char'
CipherRepeater(sentencetoencode, cipherwordtorepeat, ciphersentence);
Full Code
#include
#inc