Skip to content

Commit

Permalink
Update dualpal.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
wxx5433 committed Jan 4, 2014
1 parent 0ad5f77 commit 4a3a0d0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dualpal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ LANG: C++

using namespace std;

const char ch[10] = {'0','1','2','3','4','5','6','7','8','9'};

bool isPalindrome(string num);
string convert(int num, int base);

Expand Down Expand Up @@ -65,6 +63,7 @@ bool isPalindrome(string num)

string convert(int num, int base)
{
const char ch[10] = {'0','1','2','3','4','5','6','7','8','9'};
string result="";
int tmp;
while(num!=0)
Expand Down

0 comments on commit 4a3a0d0

Please sign in to comment.