题解 1783: 星期判断机

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

1783: 星期判断机

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){    int a;    cin>>a;    switch……

编写题解 1783: 星期判断机

摘要:解题思路:注意事项:单词不要拼错!!!!!!!!!!!!!!!!!!!!参考代码:#include <bits/stdc++.h>using namespace std;int main(){    ……

1783: 星期判断机

摘要:解题思路:注意事项:最后是    default:cout<<"input error!"<<endl;break;参考代码:#include <bits/stdc++.h>using namespa……

1783: 星期判断机

摘要:看清楚题目,0 的时候是 Sunday,第一次时直接踩坑。。import java.util.Scanner; public class Main {     public static vo……

用枚举呀,xdm

摘要:解题思路:用枚举,枚举很方便注意事项:参考代码:#include <stdio.h>int main(){    enum week{ Sun=0,Mon,Tues,Wed,Thurs,Fri,Sat……

星期判断机-题解

摘要:参考代码:#include<iostream> using namespace std; int main() { int n; cin >> n; switch(n) { ca……

题解 1783: 星期判断机

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    int a;    cin>>a;    switc……

星期判断机 (C语言代码)

摘要:解题思路:注意事项:星期六虽然是saturday,但是老师给的例子是satday;参考代码:#include<stdio.h>int main(){    int a;    scanf("%d",&……

用swtich判断星期

摘要:解题思路:设一个未知数表示要获取的星期,然后套switch的模板即可。注意事项:1.单词不要拼错,"input error"后面有个"!"; &nb……