User profile: mekkatorqu

User info
User name:mekkatorqu
Name:Juraj
Location:Slovakia
History
Joined:
Number of posts:373
Latest posts:

vector push_back class
how bad/good is this code? I mean, how do you push back class to a vector in other way? is this some...

Classes - function that will access another class?
but hp is protected, not public :X nvm, got a way around that, thanks

Classes - function that will access another class?
[code]#include <iostream> #include <vector> using namespace std; class NPC { protected: int...

-1 array value?!
@MiiNiPaa I like the foobar2k reference also thanks all for responses edit: k I got it

-1 array value?!
wait, shouldn't "a" have value of 1? as it was created before "x" array, and therefore x-1 was acces...