这是一个常数,我使用,它被分成这样的,因为我不希望有滚动我的编辑你可以在字符串文字中插入中断吗?
const string PROGRAM_DESCRIPTION = "Program will calculate the amount "
"accumulated every month you save, until you reach your goal.";
int main()
{
cout << PROGRAM_DESCRIPTION;
return 0;
}
在命令提示符目前打印出的
Program will calculate the amount accumulated every month you save,until you re
ach your goal.
当这种打印出来我想它打印两个单独的行象下面...
Program will calculate the amount accumulated every month you save,
until you reach your goal.
我不知道往哪里放break语句中的字符串这样我就可以戈将其正确打印出来。
您是否尝试过使用'\ n'插入换行符? –