I need to make a program that changes all the ASCII values of the characters in a string to one ASCII value above the ones in the string, so "ABCDEF" would become "BCDEFG" and "apple" would become "bqqmf", for examples. This is what I have so far, and it's way off:
Please help me! Thank you very much!Code:// PROJECT 10-2.CPP // By Josh Milewski #include<iostream> using namespace std; main() { const int size = 21; char x[size]; cout << "Input a string: "; cin.get(x,size); for(char y = x[0]; y < x[20]; y = y++) { cout << y++; } cout << '\n'; return 0; }