這是一個常數,我使用,它被分成這樣的,因爲我不希望有滾動我的編輯你可以在字符串文字中插入中斷嗎?
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'插入換行符? –