Not sure if this is just from some mistake while copy-pasting, but if you're using a document writer like MS Word or OpenOffice Writer, etc, well, don't do that. You don't want it auto-correcting every other phrase in your sentence.
"Int" means nothing, "int" is type integer. "While (...)" means nothing "while (...)" signifies a while loop. You should at least use a program like Notepad, or Notepad++, assuming Windows, or an IDE.
Second, a is the name of a possible variable. 'a' is a character. Char library[26] { a,b,c...};
should be char library[26] { 'a', 'b', 'c'...};
Also, you should look up how to correct do a for loop, your condition is most likely not what you want. And as Peter said, you would go over the bounds of your output string, I would instead use the += operator, and get rid of the [] for the string.
Okay, I'll start you off. Look at the while loop condition first, look at both variable types for a clue. Next, figure out how you're going to display the string.
"Int" means nothing, "int" is type integer. "While (...)" means nothing "while (...)" signifies a while loop. You should at least use a program like Notepad, or Notepad++, assuming Windows, or an IDE.
he/she probably submit this question from a cell phone
I submitted it from a phone because I was in a rush
I forgot to add at the end it prints the strong output so you can see the encryption and The capitals are because of that
I'll fix it using your advice
Thank you
while (phrase[var1] == library[var2]) { isn't what you think. You're using string objects then trying to compare a char value. This would work if you used c-style strings though.