0_0_21242635_10008.cpp: In function 'void minus(char*, char*, char*)':
0_0_21242635_10008.cpp:21:24: error: cannot convert 'char**' to 'char*' for argument '1' to 'int getStrLen(char*)'
int len = getStrLen(&s);
^
0_0_21242635_10008.cpp:22:26: error: cannot convert 'char**' to 'char*' for argument '1' to 'int getStrLen(char*)'
int len1 = getStrLen(&s1);
^
0_0_21242635_10008.cpp: In function 'void getNewNum(char*, char*)':
0_0_21242635_10008.cpp:72:3: error: 'result' was not declared in this scope
result = minus(result, "1");
^
0_0_21242635_10008.cpp:81:3: error: 'result' was not declared in this scope
result += num.substring(0, len);
^
0_0_21242635_10008.cpp:81:17: error: request for member 'substring' in 'num', which is of non-class type 'char*'
result += num.substring(0, len);
^
0_0_21242635_10008.cpp: In function 'int main()':
0_0_21242635_10008.cpp:101:17: error: cannot convert 'char (*)[1000]' to 'char*' for argument '1' to 'int getStrLen(char*)'
getStrLen(&num);
^
0_0_21242635_10008.cpp:103:24: error: cannot convert 'char (*)[1000]' to 'char*' for argument '1' to 'int getStrLen(char*)'
while (getStrLen(&num) > 1)
^
0_0_21242635_10008.cpp:106:25: error: cannot convert 'char (*)[1000]' to 'char*' for argument '1' to 'void getNewNum(char*, char*)'
getNewNum(&num, &temp);
^
|