从数组中打印元素会导致中止。中止消息表示无效的空指针。VS在打印字符串数组元素时中止 - C++
#include <iostream>
#include <string>
using namespace std;
int main()
{
int day = 5, year = 2015;
const string months[13] = { 0, "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" };
cout << months[5] << " " << day << ", " << year << endl;
}