数组法题解
2024-08-06 21:46:59
发布于:广东
3阅读
0回复
0点赞
这数组行的
#include<iostream>
using namespace std;
//A299.计算日期
int main(){
int n;
string xq[7] = {"monday","tuesday","wednesday","thursday","friday","saturday","sunday"};
cin >> n;
cout << xq[n%7];
return 0;
}
这里空空如也
有帮助,赞一个