I need help with a compiler message:
int cannot be dereferenced. Can anyone help with this?
Here is the code it is references:
decrypted = (index.charAt(0) - 7) + (index.charAt(1) - 7) + (index.charAt(2) - 7) + " " + (index.charAt(4) + 3) + (index.charAt(5)+ 3) + " " + (index.charAt(6) + 3) + (index.charAt(7) + 3) + (index.charAt(8) + 3) + (index.charAt(9) + 3);
//this is the calculation to decrypt the input and names it decrypted
Here is the actual compiler message:
int cannot be dereferenced
decrypted = (index.charAt(0) - 7) + (index.charAt(1) - 7) + (index.charAt(2) - 7) + " " + (index.charAt(4) + 3) + (index.charAt(5)+ 3)
the pointer is aimed at the . between the word index and charAt
int cannot be dereferenced. Can anyone help with this?
Here is the code it is references:
decrypted = (index.charAt(0) - 7) + (index.charAt(1) - 7) + (index.charAt(2) - 7) + " " + (index.charAt(4) + 3) + (index.charAt(5)+ 3) + " " + (index.charAt(6) + 3) + (index.charAt(7) + 3) + (index.charAt(8) + 3) + (index.charAt(9) + 3);
//this is the calculation to decrypt the input and names it decrypted
Here is the actual compiler message:
int cannot be dereferenced
decrypted = (index.charAt(0) - 7) + (index.charAt(1) - 7) + (index.charAt(2) - 7) + " " + (index.charAt(4) + 3) + (index.charAt(5)+ 3)
the pointer is aimed at the . between the word index and charAt