- Algorithms and templates/structs in C++
std::copy
vsmemcpy
:std::copy
is type-aware (nosizeof(T) * n
). It also calls the copy/assignment constructor on each object. Overlapping pointers are safe.memcpy
can be faster.malloc(sizeof(T))
vsnew T
: type-aware, calls constructors. Doesn't requirevoid*
casting. You can also overrideoperator new
.
Map input characters to a keyword's character's . REMEMBER THAT FOR AFTER KEYWORD, YOU MUST IGNORE THE KEYWORDS LETTERS.
Keyword = CRYPTO Gewoon alfabet: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Geheim alfabet: C R Y P T O A B D E F G H I J K L M N Q S U V W X Z
Ciphertext: A B C D E F G -> C R Y P T O A