28th Dec 2019, 4:18 AM
ROHIT KANOJIYA
ROHIT KANOJIYA - avatar
8 ответов
28th Dec 2019, 5:19 AM
sankot
sankot - avatar
+ 11
Thanks to sankot ~ swim ~ for Answers. My Code is now working.
28th Dec 2019, 5:29 AM
ROHIT KANOJIYA
ROHIT KANOJIYA - avatar
+ 9
But ~ swim ~ that code shows Error. why?
28th Dec 2019, 5:23 AM
ROHIT KANOJIYA
ROHIT KANOJIYA - avatar
+ 8
~ swim ~ can you explain in detail please?
28th Dec 2019, 5:12 AM
ROHIT KANOJIYA
ROHIT KANOJIYA - avatar
+ 6
I think problem can be in s, I will change it type from char * to string
28th Dec 2019, 4:33 AM
sankot
sankot - avatar
+ 5
Also here cout<<*num[*(s+i)-'0'];
28th Dec 2019, 5:26 AM
sankot
sankot - avatar
+ 5
And, you should delete one * to print whole string cout<<num[*(str+i)-'0'];
28th Dec 2019, 5:28 AM
sankot
sankot - avatar
+ 4
You declarate str but use s in getline
28th Dec 2019, 5:24 AM
sankot
sankot - avatar