• Welcome to Valhalla Legends Archive.
 

C++

Started by BNU-MaStEr, August 29, 2003, 01:56 PM

Previous topic - Next topic

BNU-MaStEr

Hey I'm a little new to programming in general, but I was wondering if there was anyone here that could help me with C++, I mainly need something I can mess around with to learn how functions on it work. If you have like an old out of date C++ bot or somethin, that would be cool. I just need to be able to see somethin.

Either way, reply if you can. :)


Zakath

Quote from: iago on February 02, 2005, 03:07 PM
Yes, you can't have everybody...contributing to the main source repository.  That would be stupid and create chaos.

Opensource projects...would be dumb.

UserLoser

www.pscode.com ! Just search for what you want to know and get a start and figuring out how the code works and try to understand it, or you can always go and get books/tutorials off the web

BNU-MaStEr

Hrm...thanks guys for the help, but I was looking for like, an outdated chatbot c++  I just wanna see how it works. I don't know if anyone else is like this, but I learn much better by doing, than by reading.

Hitmen

This might be of some help. But remember, code leeching is bad!  :P

Spht

A good example (less complex) would be Skywing's MiniChat (http://www.valhallalegends.com/skywing/files/MiniChat.cpp).

Camel

Quote from: Spht on August 30, 2003, 05:42 PM
A good example (less complex) would be Skywing's MiniChat (http://www.valhallalegends.com/skywing/files/MiniChat.cpp).

(ReadFileEx((HANDLE)Sock, Data, DATA_SIZE-1, &Overlapped, (LPOVERLAPPED_COMPLETION_ROUTINE)&ReceiveCompletion) || GetLastError() == ERROR_IO_PENDING) == False

Adron

lol, Skywing likes to write that sort of code? Doesn't it look very simple? :P

Camel

#9
Well it's not that hard to figgure out, but I would bet that most newbies to code wouldnt be able to figgure out why the GetLastError call is okay on the same line. I always try to space my code out so I don't end up with that kind of code -- the compiler has to work it out anyways, so why bother?

[edit] Did you know that there's a 't' in the word 'bet'?

Eibro

Quote from: Spht on August 30, 2003, 05:42 PM
A good example (less complex) would be Skywing's MiniChat (http://www.valhallalegends.com/skywing/files/MiniChat.cpp).
Seems to me that code won't work unless the Internal* and Offset* member variables of the OVERLAPPED struct are zeroed out. At least, in the past i've had problems with leaving them as-is.
Eibro of Yeti Lovers.

Skywing

Quote from: Eibro on August 31, 2003, 07:00 AM
Quote from: Spht on August 30, 2003, 05:42 PM
A good example (less complex) would be Skywing's MiniChat (http://www.valhallalegends.com/skywing/files/MiniChat.cpp).
Seems to me that code won't work unless the Internal* and Offset* member variables of the OVERLAPPED struct are zeroed out. At least, in the past i've had problems with leaving them as-is.
Yeah, that's a bug I never fixed in the version I posted.