Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
convert into list
#3
very nice, you did it in less than 5 minutes while I will do that in 1 hour or more....

its incredible!

i ask you something easy now:

i would like to change

str s="r1bqk2r/pppp1ppp/2n2n2/2b1p3/2P1P3/2NP4/PP3PPP/R1BQKBNR w KQkq -"


into s=""r1bqk2r/pppp1ppp/2n2n2/2b1p3/2P1P3/2NP4/PP3PPP/R1BQKBNR"

I mean i want to delete all after the "8 parts" if you see what i mean!



the problem (for me) is that s.len is not constant: for example with another example,
if s="r1bqk2r/pppp1ppp/2n2n2/2b1p3/2P1P3/2NP4/PP3PPP/7R w KQkq -" , i want to stop after 7R (7 means 7 zeros : so 7R is 0000000R) so i need to get s="r1bqk2r/pppp1ppp/2n2n2/2b1p3/2P1P3/2NP4/PP3PPP/7R" in this case


ps: it s so nice to have an incredible programmer like you that explain to me (and other people) . thank you very much


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)