Oct-02-2019, 06:33 PM
(Oct-02-2019, 05:50 PM)christing Wrote: 1.when mystring first position is 1 and I will print 1 or ok else I will print o or ngHi!
2.mystring total have 32 digit I want write a code to make sure single position 1 is reply ok else position 0 is ng
3 base on my string 32 digit I total will get ok 11time cause I have 11 once 1 and 22 ng cause I have 22 once 0
4 i want my out put is get ok*11 ng*22 or 1111111111000000000000000000000
Sorry, I think it's still difficult to understand what you want.
Could you use a translator from your mother tongue into English?
Also, can you post your question both in your mother tongue and in English, to see if somebody here understands your mother tongue and helps to answer you?
newbieAuggie2019
"That's been one of my mantras - focus and simplicity. Simple can be harder than complex: You have to work hard to get your thinking clean to make it simple. But it's worth it in the end because once you get there, you can move mountains."
Steve Jobs
"That's been one of my mantras - focus and simplicity. Simple can be harder than complex: You have to work hard to get your thinking clean to make it simple. But it's worth it in the end because once you get there, you can move mountains."
Steve Jobs