```c++
#include<iostream>
#include<string>
#include<iomanip>
#include<fstream>
using namespace std;
void main()//主函数
{
char ch[1000];
int N;
cin >> N;
cout << "输入字符串:" << endl;
cin.getline(ch, 1000, '/n');
for (int i = 0; i < 1000; i++)
{
if (ch[i] <= 90 || ch[i] >= 65)
{
if ((ch[i] + N % 26) <= 90)
{
cout << (char)(ch[i] + N % 26);
}
else
cout << (char)(ch[i] + N % 26 - 90 + 64);
}
else if (ch[i]==10||ch[i]==0)
break;
else
cout << (char)ch[i];
}
cout << endl;
}
为什么没有跳出循环
```