Skip to content

Commit

Permalink
🐛 bug: fix a little bug~
Browse files Browse the repository at this point in the history
  • Loading branch information
liuchuo committed Feb 21, 2019
1 parent ba26b2b commit edc49ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AdvancedLevel_C++/1005. Spell It Right (20).cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ int main() {
string arr[10] = {"zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"};
cout << arr[s[0] - '0'];
for (int i = 1; i < s.length(); i++)
cout << " " << arr[s[1] - '0'];
cout << " " << arr[s[i] - '0'];
return 0;
}

0 comments on commit edc49ac

Please sign in to comment.