feat: made digit vectors constexpr
This commit is contained in:
parent
47e91aea8b
commit
a331c81620
1 changed files with 2 additions and 2 deletions
4
main.cpp
4
main.cpp
|
@ -1,10 +1,10 @@
|
|||
#include "std_lib_inc.h"
|
||||
|
||||
const vector<string> first_digit_strings = {
|
||||
constexpr vector<string> first_digit_strings = {
|
||||
"", "ein", "zwei", "drei", "vier", "fuenf", "sechs", "sieben", "acht", "neun"
|
||||
};
|
||||
|
||||
const vector<string> middle_digit_strings = {
|
||||
constexpr vector<string> middle_digit_strings = {
|
||||
"", "zehn", "zwanzig", "dreissig", "vierzig", "fuenfzig", "sechzig", "siebzig", "achzig", "neunzig"
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue