Skip to content

Commit

Permalink
fix atoi
Browse files Browse the repository at this point in the history
  • Loading branch information
soulmachine committed Sep 8, 2014
1 parent 0cae1a2 commit 60a44ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions C++/chapString.tex
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,9 @@ \subsubsection{代码}

while (str[i] == ' ' && i < n) i++;

if (str[i] == '+') i++;

if (str[i] == '-') {
if (str[i] == '+') {
i++;
} else if (str[i] == '-') {
sign = -1;
i++;
}
Expand Down
Binary file modified C++/leetcode-cpp.pdf
Binary file not shown.

0 comments on commit 60a44ba

Please sign in to comment.