所以我不得不採取一個長的報價,並把它變成一個數組。我知道如何用小字符串做到這一點,但如果我有一個非常長的引號,我無法計數,我不知道如何處理。如果我這樣做:如何將長字符串放入數組中?
char prose[] = "Two things fill the mind with ever new and increasing admiration and awe, the more often and steadily we reflect upon them: the starry heavens above me and the moral law within me. I do not seek or conjecture either of them as if they were veiled obscurities or extravagances beyond the horizon of my vision; I see them before me and connect them immediately with the consciousness of my existence.」;
我的編譯器瘋狂的出錯。這顯然比10行字符串長。
標記語言。 –
請指出您的確切問題以及使用的語言! – Sorcrer
您在字符串的末尾有一個捲曲引號。 – user2357112