this post was submitted on 29 Jun 2025
-3 points (33.3% liked)
C++
2040 readers
2 users here now
The center for all discussion and news regarding C++.
Rules
- Respect instance rules.
- Don't be a jerk.
- Please keep all posts related to C++.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
There are various ways to solve the first part and they're pretty generic, the only "
C++
-specific" part is whether you'll want to build the string step by step (adding characters) or build in one go then modify (build a prearranged string, for example of a specific size, then modify as needed).To solve the second part we (you) also need to know the encryption algorithm. "Encrypt" is quite a generic word.
Let's solve the first part then.
But I guess that @herzenschein already suggested me a solution...
Oh good I had forgotten that part!