TinyXML GetText()
I think you'll find the entire string has been loaded, it's just that MSVS only displays the first 256 bytes as a preview in the tooltip.
mattd: Actually no. I have another function, which split string into numbers :) and it return only these numbers.
Quote:Original post by wh1sp3rikCan we see that function? What does strlen(INCIDES_DATA) return in both cases?
mattd: Actually no. I have another function, which split string into numbers :) and it return only these numbers.
Don't worry :) my length function works correctly.
i found a problem. Problem is, i can't get amount of float items :D it returned only 500 numbers .. because there were value with 0 :D and i tried to count until data = NULL :D i just forgot, It works only with chars.
Is there a way, how to calculate amount of floats in array ? :) which is dynamicly allocated ? float * variable = new float[1000]; ?
i found a problem. Problem is, i can't get amount of float items :D it returned only 500 numbers .. because there were value with 0 :D and i tried to count until data = NULL :D i just forgot, It works only with chars.
Is there a way, how to calculate amount of floats in array ? :) which is dynamicly allocated ? float * variable = new float[1000]; ?
Quote:Original post by wh1sp3rik
Is there a way, how to calculate amount of floats in array ? :) which is dynamicly allocated ? float * variable = new float[1000]; ?
If you don't know the size you allocated with, then no. Use a std::vector or similar instead.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement