/
githubmirror
/
CPlusPlusThings
Обзор
Документация
Войти
/
githubmirror
/
CPlusPlusThings
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
practical_exercises/10_day_practice/day2/enum.cpp
17 строк
344 B
zhangxing
support bazel complie this project and format code.
30 мар 2024, 17:00
30 мар 2024, 17:00
3c8a3f2
Код
Авторство
О чём код?
/* 枚举类型.cpp */ #include <iostream> using namespace std; enum weekday { s, m, t, w, thu, f, s1 }; int main(int argc, char const *argv[]) { enum weekday wek = s; // weekday wek=s; for (int i = wek; i != f; i++) { cout << i << endl; cout << wek + s << endl; cout << "-------哈哈-------" << endl; } return 0; }