Welcome to Anything Forums! We are a general discussion forum that believes in freedom of expression and aim to provide a low moderation (within reasonable means) environment to discuss any topic. If you want to join, simply click HERE to be taken to our account management system where you can make an account. If you had an account at iceteks.com, anythingforums.com, uovalor.com or uogateway.com in the past it has been transfered over and you can simply do a password reset.
It's the only way though in this case, since I have to read from files and store it in chars. As long as a host in the file does not get bigger than 10000 bytes I should be fine.
Archived topic from Iceteks, old topic ID:3167, old post ID:25922
Honk if you love Jesus, text if you want to meet Him!
I would but most functions I'm used to need chars. Like nearly all string handling functions. or sockets for example, when you specify the host, it needs a char. Though I wish C++ was like php, where you can pass anything and it works, no data types, and no limits. I can store the whole US, Canada and Europe constititions in a single variable if I wanted to. (that's assuming the server has the memory/swap space)
Archived topic from Iceteks, old topic ID:3167, old post ID:26039
Honk if you love Jesus, text if you want to meet Him!
Red Squirrel wrote: I would but most functions I'm used to need chars. Like nearly all string handling functions. or sockets for example, when you specify the host, it needs a char. Though I wish C++ was like php, where you can pass anything and it works, no data types, and no limits. I can store the whole US, Canada and Europe constititions in a single variable if I wanted to. (that's assuming the server has the memory/swap space)
Get used to other functions, and when you need char-array strings, just use the c_str member function of the std::string class.
Archived topic from Iceteks, old topic ID:3167, old post ID:26046
I'll have to look into that, anything to avoid buffer overflows is good. Not sure where to start though, got any tutorials that would help? Since this is basically like learning a new language as all the functions are different.
Archived topic from Iceteks, old topic ID:3167, old post ID:26047
Honk if you love Jesus, text if you want to meet Him!