I have a problem in line 37:
const auto numberOfBitsToRotate = key[(std::vector<int>)numberOfBitsToRotateLocation];
the error is:
Error (active) no operator "" matches these operands
operand types are: const EncryptionKey [ std::vector<int, std::allocator<int>> ]
I don’t know c++, but i know c# and java, so the first few errors were easy, but now I’m stuck…
And when I tried to compile it, it showd this:
Error C2663 ‘std::vector<unsigned char,std::allocator<_Ty>>::push_back’: 2 overloads have no legal conversion for ‘this’ pointer MakeMeCompile c:\program files (x86)\microsoft visual studio 14.0\vc\include\iterator 38
maybe because I erased the ‘(std::vector<int>)’ it the previous error.
thx for the help!