Cheers, I'll remember to make g++ more verbose from now on!
Type: Posts; User: timmygee
Cheers, I'll remember to make g++ more verbose from now on!
You know how the little programs you do for fun sometimes just leave you tearing your hair out? Here's my broken program - I think it's something to do with undefined floats, but... well you'll have...
I would suggest you look through the C++ tutorials on the site, or better yet, get a proper book on it (I know everyone has their favourite, but I _love_ O'reilly's 'Practical C++ Programming')....
Could it be that you need to compile it as a multi-threaded dll/ debug - it's in code generation in the properties menu. It's just that's what it usually is when I have an error like that - two...
ZOMGWTFBBQHAXXX?!!! swgh that can't be true, C++ for GAMES?!! Only like hackers do that coz it's not possible mate! Only language that's any good for making games is BASIC and even then your better...
You don't need to get a new hard drive to dual boot Linux, you can just usr cfdisk/fdisk to split into two partitions. Then install Windows on one, and then Linux on the other. Linux will have a boot...
I thought that if you looked at the man file for 'fstab' it showed you the functions you can use for gaining info on drives? worth checking anyway, I'm afraid my Slackware box isn't networked, this...
hmmm. but it is outputting into the textfile perfectly okay... I'm not at college right now, but once I get back, I'll try your modifications. That'll be on monday, so meh.
Good point, I shouldn't have done that... consider it removed :D
Zuk - what do I do about it? I mean, surely I need to use it as a string in order to write it to a text file? The thing is, I can...
I think this probably belongs here, since it seems to be an error with my C++, not my interpretation of winsock. However, feel free to move it if I'm wrong.
Okay, when I run this program, it...
By the way, why are you using std::cout etc? You've already defined that you're using namespace std;
But 'syntactical' is one :)
You know, I really like going through my old C++ books and doing the exercises... I find it actually quite fun, and I keep them and set myself the objective of going through the whole book :D I've...
On a related note, can I use
atexit(WSACleanup());
and is that a reliable solution, or should I really just make sure I do it all manually. I know that in many cases, atexit() is frowned...