hey..but as i wrote when i write list.at(0) i get just the first character (0) of the numer 0.724928 and when i write list.at(1) i get (.)
do you have any idea why is that happening ?
Regards
hey..but as i wrote when i write list.at(0) i get just the first character (0) of the numer 0.724928 and when i write list.at(1) i get (.)
do you have any idea why is that happening ?
Regards
This should not happend unless you have spces between numbers or else you might doing line.at(0) or line.at(1).
show your code.
Thanks :-)
mejacky (6th October 2015)
i think every chracter is being interpreted as a column or an element und not the whole number 0.724928.. so if i give list.at(15) i get 1 from the other number 0.0451153..
so how could i solve the problem ?![]()
Show your splitting part of the code plz
Thanks :-)
mejacky (6th October 2015)
And as you wrote you get that when you are not using the space separator to split on.
So prasad_N made a typo in an otherwise good answer. As a programmer you could have looked at the error, then figured that one of your two list.at() calls must be the problem, then checked which one and then fixed it after consulting the documentation.
But instead you randomly changed something else, getting a totally different and for your purpose unusable result.
One of the most important skills for a developer is to anaylize error situations.
Asking for help for every minor problem is not viable in the long run.
Cheers,
_
Thank you a lot guys for your replys..i'm still getting the same Probleme, but I will keep trying until it works
Best Regards
You have been given the solution for the by-character, rather than by-column, split. If you have done that change, that is replaced, and the character between the columns is indeed a space (not a Tab) then you must be seeing a different problem. You are not to describing the new problem, and doing so would definitely help.Qt Code:
// withTo copy to clipboard, switch view to plain text mode
mejacky (6th October 2015)
Bookmarks