#pointer to string

21 messages · Page 1 of 1 (latest)

dreamy flame
#

it does because the asterics are making your code italicized

#

it aight

#

did you write this yourself? the code

#

why did you define your struct like that?

#

ok, but you're trying to construct it using a vector of "bytes", right?

#

so, I would advise changing your struct so that you use value types and not pointers

#

so uintXX_t* become uintXX_t

#

as for the nickname, you probably want to use a std::string instead

#

that seems kinda low level using fseeks and what not

#

those are actually c functions

#

so you could probably use them in your c++ code as well

#

are strings of fixed size

#

?

#

what's the value of n?

#

nickname[n - 1] = '\0'

#

trying adding this but keep in mind this is very dangerous code

#

because if a string has fewer than n chars, you'll end up printing garbage

#

after you assing the value to nickname

crude horizon
#

is that reverse engineering?

#

tbh it would be simpler for u to use std::string