this is my code so far i want to make it encrypt the cod by move the letters 2 spots to the left on the alphabet how do i do this.i want to make it simple.
#include <iostream>
#include <string>
using namespace std;
int main(){
char question[] = "enter a password you want to encypt,it has to be only letters";
char password[60];
cout << question;
cin >> password;
im new to c++ so i dont get what you are syaing.ok here i go.
so i have char password[60]; does that mean like do 60 c -2's.. can you like please explain the format to me
Use a proper C++ string so you don't have to worry about putting a zero at the end of it.
97 because the letter 'a' in ascii is represented by a char with the numerical value 97. 26 because there are 26 letter in the alphabet. Experiment with this code.
Please read through it so you won't need quite so much hand-holding. ;-)
BTW, I'm not trying to be mean and I'm sure Moschops doesn't need me protecting him. I just want you to know there are resources you can access yourself instead of posting every little question and waiting for a response.
Ok I already did the tutorial up to character sequences
Please just tell me what [I] means,please
Hmmm, if you read (and understood) the tutorial up to character sequences you should have a grasp of control structures and arrays. [i] is simply the common variable name when it's used to index an array. In the tutorial an [n] is used instead. Re-read that section with that in mind and see if it starts to click.